Image List API
View componentThe full prop reference for the Image List component. A grid for image collections.
Import
tsx
import { ImageList } from '@structyl/styled';Props
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. | — |
Source code
If you didn't find what you need here, read the component implementation .