Skip to content
Data Display

Masonry

A responsive CSS multi-column masonry layout for cards and images.

Import

tsx
import { Masonry } from "@cooud-ui/ui";
bash
npx cooud-ui add masonry

Examples

API Reference

Generated from the component's exported types.

MasonryProps

Extends HTMLAttributes<HTMLDivElement>

PropTypeDefaultDescription
columns
number | MasonryColumnsDEFAULT_COLUMNSNumber of columns, either a fixed count or a responsive map keyed by breakpoint.
gap
string"1rem"CSS length used for both the column gap and the vertical gap between items.