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.
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.
- columnsnumber3
- Number of columns to use when no container-query breakpoint matches. Must be a positive integer >= 1.
- columnBreakpointsTMasonryColumnBreakpoints
- 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.
- gapTGridGapSize | 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.
- animatedbooleantrue
- Animate transform when an item moves to a different position on column-count change. CSS-only transition applied to children.
- alignTMasonryAlign'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