SCROLL_BEHAVIOR

enum
Behavior

TypeScript enum for Toolbar scroll behavior — hide, invert, collapse, elevate, or activate on scroll.

TypeScript

Définition

La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Membres

Membres

Tous les membres de cet enum. Cliquez sur une valeur pour la copier dans le presse-papiers.

SCROLL_BEHAVIOR.HIDE
Toolbar slides out of view when the user scrolls down and reappears on scroll up.
SCROLL_BEHAVIOR.INVERTED
Inverted hide — toolbar shows when scrolling down and hides when scrolling up.
SCROLL_BEHAVIOR.COLLAPSE
Toolbar shrinks (collapses) its height as the user scrolls down.
SCROLL_BEHAVIOR.ELEVATED
Toolbar gains an elevation shadow when the page is scrolled away from the top.
SCROLL_BEHAVIOR.ACTIVE
Toolbar enters an active/highlighted state when the page is scrolled.

Écosystème

Utilisé par

Composants et props qui acceptent cet enum comme valeur.

Usage

Exemples

Extraits de code prêts à coller utilisant cet enum.

Using the enum in script setup

typescript