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.

typescript

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.

height
number | string
Block size — a number (resolved to "Npx"), a CSS length, a custom-property ref or an aspect-ratio shortcut.
maxHeight
number | string
Maximum block size, same accepted shapes as height.
maxWidth
number | string
Maximum inline size, same accepted shapes as width.
minHeight
number | string
Minimum block size, same accepted shapes as height.
minWidth
number | string
Minimum inline size, same accepted shapes as width.
width
number | 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

typescript