Gallery Component

A responsive image gallery component with lightbox, thumbnails, and advanced features.

Basic Gallery

A simple gallery with default styling.

Gallery with Thumbnails

A gallery with thumbnails and advanced features.

Gallery with Auto-Playing

A gallery with auto-playing functionality.

Auto-playing gallery with 3-second interval

Gallery Props

The main gallery container component.

PropDescriptionTypeDefault
defaultIndexThe initial active image index.number0
thumbnailPositionPosition of the thumbnails."top" | "bottom" | "left" | "right""bottom"
showThumbnailsWhether to show thumbnails.booleantrue
showControlsWhether to show navigation controls.booleantrue
autoPlayWhether to auto-play the gallery.booleanfalse
autoPlayIntervalInterval between slides in milliseconds.number3000
loopWhether to loop the gallery.booleantrue
onIndexChangeCallback when the active index changes.(index: number) => void-

Gallery.Item

Individual gallery item component.

PropDescriptionTypeDefault
idUnique identifier for the item.string-
srcImage source URL.string-
altAlternative text for the image.string-
captionCaption text for the image.string-
thumbnailThumbnail image URL. Falls back to src if not provided.string-