IPositionProps

interface
Layout & Sizing

CSS position contract — the positioning scheme plus numeric/string inset values for each side. Consumed by fixed or sticky surfaces such as app bars, FABs and snackbars.

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.

position
TPosition
CSS position scheme — "static" | "relative" | "absolute" | "fixed" | "sticky". Maps directly to the position CSS property.
top
number | string
Top inset. A number is resolved to "Npx"; a string is used verbatim (any CSS length).
bottom
number | string
Bottom inset. Same value shapes as `top`.
left
number | string
Left inset. Same value shapes as `top`.
right
number | string
Right inset. Same value shapes as `top`.

É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 for a sticky component

typescript