structyl

Image List

stable

A grid for image collections.

Basic usage

  • Landscape
    Landscape

Examples

Image grid with captions

Compose image, item and caption parts for gallery cards.

  • Forest
    Forest
  • Desert
    Desert
  • Coast
    Coast

Dense image tiles

Override grid classes when you need a tighter layout.

  • One
  • Two

Layout variants

ImageList supports cols, gap, rowHeight and standard/woven/masonry/quilted variants.

  • Forest
  • Desert
  • Coast

Features

  • Image and caption parts.
  • Responsive grid styling.

Installation

bash
pnpm dlx structyl add image-list

API Reference

ImageList.Root

Image collection root.

PropTypeDefault
cols1 | 2 | 3 | 4 | 5 | 6

Column count.

2
gap0 | 1 | 2 | 3 | 4 | 5 | 6 | 8

Tile gap.

3
rowHeightnumber | 'auto'

Fixed image row height.

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

Image layout mode.

'standard'
classNamestring

Additional Tailwind classes merged with the component defaults.

ImageList.Item / Image / Caption

Image tile parts.

PropTypeDefault
classNamestring

Additional Tailwind classes merged with the component defaults.

Image List | structyl