structyl

Masonry API

View component

The full prop reference for the Masonry component. A masonry-style column layout.

Import

tsx
import { Masonry } from '@structyl/styled';

Props

Masonry

Column masonry layout.

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

Column count.

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

Column/item spacing.

4
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