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

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

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.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Responsive masonry with container breakpoints

vue