Components › Overlays

Lightbox

A grid of thumbnails that opens each image large, with previous and next.

Installation

npx plankui@latest add lightbox

Usage

import { Lightbox } from "@/components/ui/lightbox";

<Lightbox images={[{ src, alt, caption }]} columns={3} />

API reference

PropTypeDefaultDescription
images{ src, alt, caption? }[]requiredThe pictures, in order.
columns2 | 3 | 43Thumbnail grid columns.

View the source on GitHub