Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA thumbnail grid that opens a full-screen viewer, zooming out of the thumbnail, with arrow keys, swipe, captions and a thumbnail strip.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Pass a smaller thumbnail for each image so the grid loads fast; the viewer loads src only when it opens.
| Prop | Type | Default | Description |
|---|---|---|---|
images | LightboxImage[] | - | Images with src, alt, optional thumbnail and caption. |
index | number | null | - | Open image when controlled; null closes the viewer. |
onIndexChange | (index: number | null) => void | - | Called when the viewer opens, pages or closes. |
loop | boolean | true | Wrap around at the ends. |
showThumbnails | boolean | true | Show the thumbnail strip in the viewer. |
gridClassName | string | - | Classes for the thumbnail grid, for example column counts. |
className | string | - | Classes for the root. |
Also accepts all div props.
alt text, with aria-haspopup="dialog".alt and describes its position and the arrow key shortcut.aria-current.