Updated October 2026
Swipe & Touch Gestures
Physics-based touch and mouse drag gestures with velocity-driven dismissal and directional snap.
Every toast is touch-interactive by default. Users can flick notifications horizontally or vertically on mobile screens or with a mouse on desktop.
typescript
toast('Swipe me away!', {
swipe: true,
swipeDirections: ['right', 'up'],
dragThreshold: 45, // drag distance in px required to trigger dismissal
});
`
Want to test these options live?
Launch the interactive playground to experiment with themes, positions, and live generators.