structyl

Image List API

View component

The 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.

PropTypeDefault
cols#1 | 2 | 3 | 4 | 5 | 6

Column count.

2
gap#0 | 1 | 2 | 3 | 4 | 5 | 6 | 8

Tile gap.

3
rowHeight#number | 'auto'

Fixed image row height.

'auto'
variant#'standard' | 'woven' | 'masonry' | 'quilted'

Image layout mode.

'standard'
className#string

Additional Tailwind classes merged with the component defaults.

ImageList.Item / Image / Caption

Image tile parts.

PropTypeDefault
className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library