Components › Overlays
Lightbox
A grid of thumbnails that opens each image large, with previous and next.
Installation
npx plankui@latest add lightboxUsage
import { Lightbox } from "@/components/ui/lightbox";
<Lightbox images={[{ src, alt, caption }]} columns={3} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| images | { src, alt, caption? }[] | required | The pictures, in order. |
| columns | 2 | 3 | 4 | 3 | Thumbnail grid columns. |