# Lightbox

A grid of thumbnails that opens each image large, with previous and next. PlankUI component for React 19 and Tailwind CSS v4. Category: Overlays.

## Install

```bash
npx plankui@latest add lightbox
```

## Usage

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

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| images | `{ src, alt, caption? }[]` | `required` | The pictures, in order. |
| columns | `2 \| 3 \| 4` | `3` | Thumbnail grid columns. |

Source: https://github.com/VectorLabsHQ/plankui/blob/main/components/ui/lightbox.tsx
