Clevision

Gallery Component

Galleries 48

About

Responsive image gallery section by Shadcn Studio with a mixed single and two-column grid layout.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Gallery Component to your project and fits it to your theme.

Code

How Gallery Component is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import GalleryComponent01 from '@/components/ui/shadcn-studio-gallery-component-01'
import type { GallerySection } from '@/components/ui/shadcn-studio-gallery-component-01'

const gallerySections: GallerySection[] = [
  {
    images: [
      {
        src: 'https://cdn.21st.dev/assets/mirror/4a/4af64b1d227c1ba32ce46cc0abe700c5a6e537e70c1c39831f9ccf28a5ccebef.png',
        alt: 'Black and white photo of modern curved architecture'
      }
    ]
  },
  {
    type: 'grid',
    images: [
      {
        src: 'https://cdn.21st.dev/assets/mirror/77/779686259a89fe27684a20e9887852e90e832c2d2354e023d9e11da41644af5a.png',
        alt: 'Black and white water lily floating among leaves'
      },
      {
        src: 'https://cdn.21st.dev/assets/mirror/55/556135fa5d5d1710153797cd928cf73a3fa75cb96a9675c3b9395df61238c3a0.png',
        alt: 'Black and white apartment facade with wavy balcony awnings'
      },
      {
        src: 'https://cdn.21st.dev/assets/mirror/b8/b8bf6979bf2dbfba1d1723bfa8a4a5e44f067d80283e743597e530a316676c12.png',
        alt: 'Black and white apartment block with a "Love me forever" sign'
      },
      {
        src: 'https://cdn.21st.dev/assets/mirror/4c/4ca5f7e5fa6eca616586b4e7071bfd166cd8a57248dbb5b2313fc436cee4acfa.png',
        alt: 'Black and white photo of two dogs in a grassy yard'
      }
    ]
  },
  {
    type: 'grid',
    images: [
      {
        src: 'https://cdn.21st.dev/assets/mirror/1c/1c1611a175575bfd5c3881e9f7d401e7a4179ec6cb0c247e62824d3d22590092.png',
        alt: 'Black and white photo of a person walking along a dark street'
      },
      {
        src: 'https://cdn.21st.dev/assets/mirror/33/33e47ef2341109137ebd03d20da88f87841c40d0c5c0957622c7b847ad53a120.png',
        alt: 'Black and white apartment facade with wavy balcony awnings'
      },
      {
        src: 'https://cdn.21st.dev/assets/mirror/7d/7d2b77ec662ce894ed545c9539ee561627ac378408bb9780b1246afe2214f14a.png',
        alt: 'Blurred glass spheres with a red light accent'
      },
      {
        src: 'https://cdn.21st.dev/assets/mirror/b0/b0e1e08e67f19bb03db1b921552cd82d5c7e33143a6bbae7c5340f807d580e42.png',
        alt: 'Black and white photo of a vintage car parked on a street'
      }
    ]
  },
  {
    images: [
      {
        src: 'https://cdn.21st.dev/assets/mirror/b9/b9fd5f0ebe22db2e7614e31586b83076bfe498172621ecd7a6ceb8e1c0be4e3b.png',
        alt: 'Black and white mountain valley with a wooden boardwalk'
      }
    ]
  }
]

const GalleryPage = () => {
  return <GalleryComponent01 sections={gallerySections} />
}

export default GalleryPage

More by Clevision

View all
  • Portfolio Hero

    Portfolio Hero

    1.2K
  • Syntra Hero

    Syntra Hero

    759
  • Hero Section

    Hero Section

    439
  • Hardware Hero

    Hardware Hero

    251
  • Studio Hero

    Studio Hero

    240
  • Saas Hero Section

    Saas Hero Section

    236
  • Hero Section 41

    Hero Section 41

    206
  • Nexa Canvas Hero

    Nexa Canvas Hero

    121

More in Galleries

View all
  • Photo Deck

    Photo Deck

    80
  • Scattered About

    Scattered About

    78
  • Product Hover Showcase

    Product Hover Showcase

    120
  • Morph Gallery

    Morph Gallery

    3
  • Image Gallery

    Image Gallery

    97
  • Editorial Collage Hero

    Editorial Collage Hero

    529
  • About 3

    About 3

    459
  • Elastic Gallery

    Elastic Gallery

    1.2K

Explore more

Part of ShadcnStudio — browse the full library on 21st.dev.