Image List
stableA grid for image collections.
Basic usage
- Landscape
Examples
Image grid with captions
Compose image, item and caption parts for gallery cards.
- Forest
- Desert
- Coast
Dense image tiles
Override grid classes when you need a tighter layout.
Layout variants
ImageList supports cols, gap, rowHeight and standard/woven/masonry/quilted variants.
Features
- Image and caption parts.
- Responsive grid styling.
Installation
bash
pnpm dlx structyl add image-listAPI Reference
ImageList.Root
Image collection root.
| Prop | Type | Default |
|---|---|---|
| cols | 1 | 2 | 3 | 4 | 5 | 6Column count. | 2 |
| gap | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8Tile gap. | 3 |
| rowHeight | number | 'auto'Fixed image row height. | 'auto' |
| variant | 'standard' | 'woven' | 'masonry' | 'quilted'Image layout mode. | 'standard' |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |
ImageList.Item / Image / Caption
Image tile parts.
| Prop | Type | Default |
|---|---|---|
| className | stringAdditional Tailwind classes merged with the component defaults. | — |