A row of cards you drag sideways. Cards further from your grab trail behind, so the strip stretches and leans, then springs straight.










pnpm dlx shadcn@latest add @latheui/elastic-stripPart of Lathe Pro. Set up your project once with your license key: npx latheui init --key <key>. See Lathe Pro.
Elastic Strip is part of Lathe Pro
The preview is live and free to try. The source, the install and every assembly come with Pro: $79 once, with lifetime updates.
Depends on
Also accepts native div attributes. Each child is one card; size the strip's height with className.
| Prop | Type | Default | Description |
|---|---|---|---|
| children* (required) | ReactNode | — | The cards. |
| label* (required) | string | — | Accessible name for the strip. |
| cardWidth | number | 220 | Width of a card, in px. |
| gap | number | 16 | Space between cards, in px. |
| elasticity | number | 0.7 | How much cards far from the grab trail behind, from 0 (rigid) to 1. |
| bend | number | 9 | Degrees a trailing card leans. 0 keeps cards upright. |
| snap | boolean | true | Settle with a card's edge at the start after a fling. |
<ElasticStrip label="Shots" elasticity={1} bend={18}>{cards}</ElasticStrip>