Image List
ImageList displays a collection of images in an organized grid with support for different layout patterns.Basic usage
Standard image list
The default variant with equal-sized images in a grid:Quilted image list
Highlight certain items over others with featured tiles:Woven image list
Use alternate rows with offset positioning:Masonry image list
Use variable-height images in a Pinterest-style layout:Image list with title bars
Add overlays with titles and additional actions:Custom gap
Adjust spacing between images:Props
ImageListProps
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | Required | Normally ImageListItems |
classes | Partial<ImageListClasses> | - | Override or extend styles |
cols | number | 2 | Number of columns |
component | React.ElementType | 'ul' | The component used for the root node |
gap | number | 4 | Gap between items in px |
rowHeight | number | 'auto' | 'auto' | Height of one row in px |
sx | SxProps<Theme> | - | System prop for defining custom styles |
variant | 'masonry' | 'quilted' | 'standard' | 'woven' | 'standard' | The layout variant |
ImageListItemProps
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | Required | The content, normally an <img> |
cols | number | 1 | Width in number of grid columns (quilted variant) |
rows | number | 1 | Height in number of grid rows (quilted variant) |
component | React.ElementType | 'li' | The component used for the root node |
sx | SxProps<Theme> | - | System prop for defining custom styles |