Contact Sheet
ProNewInspect a photographic contact sheet and develop the selected frame in a lightbox-style viewer.
Installation
pnpm dlx shadcn@latest add @viewport/contact-sheet
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| roll* | stringName of the film roll or photo collection. | — |
| frames* | Frame[]Ordered image URLs with alt text, captions and stable IDs. | — |
| onSelect | (id: string) => voidReceives the selected frame ID. | — |
Accessibility
- Every thumbnail has a named button. Captions and frame numbers update with the selected photograph.