Masonry
A responsive CSS multi-column masonry layout for cards and images.
Import
import { Masonry } from "@cooud-ui/ui";
npx cooud-ui add masonry
Examples
API Reference
Generated from the component's exported types.
MasonryProps
Extends HTMLAttributes<HTMLDivElement>
| Prop | Type | Default | Description |
|---|---|---|---|
columns | number | MasonryColumns | DEFAULT_COLUMNS | Number 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. |