IDimensionProps
interface
Layout & Sizing
Sizing contract — height/width plus their min/max bounds, consumed via useDimension().dimensionStyles.
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.
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.
- heightnumber | string
- Block size — a number (resolved to "Npx"), a CSS length, a custom-property ref or an aspect-ratio shortcut.
- maxHeightnumber | string
- Maximum block size, same accepted shapes as height.
- maxWidthnumber | string
- Maximum inline size, same accepted shapes as width.
- minHeightnumber | string
- Minimum block size, same accepted shapes as height.
- minWidthnumber | string
- Minimum inline size, same accepted shapes as width.
- widthnumber | string
- Inline size — a number (resolved to "Npx"), a CSS length, a custom-property ref or an aspect-ratio shortcut.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Extending the interface and consuming the styles