Lightbox
Media & Content
Fullscreen image viewer with spring scale animation, backdrop blur, click-to-zoom, arrow key navigation, thumbnail strip, and click-outside-to-close.
Loading preview...
Customize
Start index0
Props
| Prop | Type | Default | Description |
|---|---|---|---|
images | { src: string; alt?: string }[] | [] | Array of image objects with src and optional alt text. |
initialIndex | number | 0 | Index of the image to display when opened. |
open | boolean | false | Whether the lightbox is visible. |
onClose | () => void | — | Callback fired when the lightbox should close. |