IGridItemProps
interface
Layout & Sizing
Props for OrigamGridItem — controls CSS Grid placement via column, row and area (object or shorthand string syntax), plus per-item alignSelf and justifySelf overrides.
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.
- columnIGridLineSpec | string | number
- Inline-axis placement (grid-column). Pass an object { start, end } / { start, span } or a CSS string like "1 / 5".
- rowIGridLineSpec | string | number
- Block-axis placement (grid-row). Same accepted shapes as column.
- areastring
- grid-area name. When set, overrides column and row.
- alignSelfTGridPlaceSelf
- Per-item align-self override.
- justifySelfTGridPlaceSelf
- Per-item justify-self override.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Placing an item across columns with object syntax