Gallery

A responsive grid-based component for displaying images or media in an organized gallery layout.

lucide-react swiper

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/gallery.json

Examples


Woven Images

Slider

Title (Top)

Title (Below)


API Reference

PropTypeDefault
variantstandard, woven, sliderstandard
childrenReact.ReactNode-

GalleryItem

PropTypeDefault
childrenReact.ReactNode-

GalleryImage

PropTypeDefault
srcstring-
altstring-
widthnumber-
heightnumber-
classNamestring-
imageClassNamestring-

GalleryItemBar

PropTypeDefault
titlestring-
subtitlestring-
actionIconReact.ReactNode-
positiontop, bottom, belowbottom