- Components
- Overlays
Lightbox
A Dialog with prev/next buttons, arrow-key cycling (wraps), an info panel slot, a counter and the dialog rise motion. Click a thumbnail.
Installation#
npx shadcn add @ortaui/lightboxExamples#
Stage only#
With info panel#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| open / onOpenChange | boolean / (open) => void | - | Controlled open state. |
| title | string | - | Accessible name (visually hidden). |
| index / onIndexChange | number / (index) => void | - | Current item, 0-based. |
| count | number | - | Total items; prev/next and arrow keys wrap. |
| info | ReactNode | - | Side panel content. Omit for a stage-only lightbox. |
| children | ReactNode | - | The stage: render the current item. |