IMasonryProps

interface
Component Props

Props for <OrigamMasonry> — Pinterest-style masonry layout with CSS-first grid-template-rows:masonry implementation gated on browser support and a JS ResizeObserver fallback.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

columns
number
3
Number of columns to use when no container-query breakpoint matches. Must be a positive integer >= 1.
columnBreakpoints
TMasonryColumnBreakpoints
Container-query column breakpoints — a map of min-width (px) to column count. The masonry observes its own size and picks the matching column count automatically.
gap
TGridGapSize | string | number
'md'
Gap between items. Accepts a grid size token ('xs'|'sm'|'md'|'lg'|'xl'), a CSS length string, or a number interpreted as pixels.
animated
boolean
true
Animate transform when an item moves to a different position on column-count change. CSS-only transition applied to children.
align
TMasonryAlign
'top'
Vertical alignment of items inside a column. 'center' centres each column's cumulative content; only the JS fallback honours this.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Responsive masonry with container breakpoints

vue