SCROLL_STRATEGIES
const
Overlay & Positioning
Map of scroll behaviour strategies consumed by overlaying components (Menu, Tooltip, Snackbar, ContextualMenu, Overlay). Keys are the prop string values; values are the strategy handler functions (or null for "none").
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- none: null
- close: closeScrollStrategy
- block: blockScrollStrategy
- reposition: repositionScrollStrategy
Ecosystem
Used by
Composables and components that consume this constant.
useScroll
OrigamOverlay
OrigamMenu
OrigamTooltip
OrigamSnackbar
OrigamContextualMenu
Usage
Examples
Ready-to-paste code snippets using this constant.
Listing all valid scroll strategy keys