DEFAULT_SHEET_SNAP_POINTS

const
Layout & Sizing

Default snap-point set used by OrigamSheet when the consumer does not pass custom snap points. Defines four positions: closed (0), peek (120px), half (50vh), and full (90vh).

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

{ id: 'closed', height: 0 }
Collapses the sheet height to zero — the parent is responsible for unmounting.
{ id: 'peek', height: '120px' }
Shows ~120 px of content (drag handle + teaser line).
{ id: 'half', height: '50vh' }
Roughly 50% of the viewport height.
{ id: 'full', height: '90vh' }
Leaves a 10vh strip at the top so the underlying scrim is still dismissible.

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamSheet

Usage

Examples

Ready-to-paste code snippets using this constant.

Overriding the snap points

typescript