examples / snap-points
Named snap points
Control compact and expanded destinations with stable identifiers.
All recipesLive package
Preview
Phone viewport: 390 × 780
Loading preview…
Prerequisites
- Two named destinations with distinct layout values.
Behavior
- Buttons and drag gestures update the controlled destination.
Accessibility notes
- Snap controls expose their selected state with aria-pressed.
- The current destination is announced through a polite live region.