Clevision

Gallery Component

Galleries 2

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
  • Syntra Hero

    Syntra Hero

    114
  • Calendar

    Calendar

    111
  • Card Studio

    Card Studio

    107
  • Collapsible

    Collapsible

    43
  • Waitlist 01

    Waitlist 01

    40
  • Button Group

    Button Group

    40
  • Hero Section 41

    Hero Section 41

    39
  • Logo Cloud

    Logo Cloud

    39

More in Galleries

View all
  • Scattered About

    Scattered About

    2
  • Animated Gallery

    Animated Gallery

    1.5K
  • Thumbnail image viewer

    Thumbnail image viewer

    99
  • Editorial Collage Hero

    Editorial Collage Hero

    501
  • Image Gallery

    Image Gallery

    95
  • Elastic Gallery

    Elastic Gallery

    1.1K
  • Folded Card

    Folded Card

    38
  • Hero Section 6

    Hero Section 6

    949

Explore more

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