TPosition

type
Layout & Sizing

CSS position value accepted by the position prop on many Origam components — maps directly to the CSS position property.

TypeScript

Définition

La définition TypeScript telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Acceptées

Valeurs

Valeurs littérales de chaîne acceptées pour ce type. Cliquez sur une valeur pour la copier.

fixed
Positioned relative to the viewport — stays put during scroll. Used by AppBars and FABs.
static
Default CSS flow position — top/right/bottom/left have no effect.
relative
Positioned relative to its normal flow position — creates a new stacking context.
absolute
Positioned relative to the nearest positioned ancestor — used for overlays and decorative elements.
sticky
Behaves as relative until a scroll threshold, then fixed — ideal for sticky table headers and section navs.

Écosystème

Utilisé par

Composants et props qui acceptent ce type comme valeur.

Usage

Exemples

Extraits de code prêts à coller utilisant ce type.

Fixed toolbar that stays at the top during scroll

html

Sticky section header inside a scroll container

html