Component packs › Tug › Elastic Sheet
A three-snap bottom sheet whose top edge bulges with velocity while the backdrop dims in lockstep.
Elastic Sheet is a gesture from Tug, a component pack with 8 gestures: Eight pull gestures that follow your finger and let go like real material. Price: $2 for the whole pack.
Built with: snap by distance or flick, membrane edge, linked dim.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
width | number | ||
autoplay | boolean | ||
onSnap | (snap: 'peek' | 'half' | 'full') => void |
snap(i: 0 | 1 | 2): voiddestroy(): voidimport ElasticSheet from './ElasticSheet';
<ElasticSheet />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Drag and pull gestures.