Elastic Drag List
A production-scale, light + dark Elastic Drag List component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add elastic-drag-listLive preview available in the gallery.
Usage
import { ElasticDragList } from "@lerpa/ui";
<ElasticDragList />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | ElasticDragItem[] | - | |
| onReorder | (newItems: ElasticDragItem[]) => void | — | |
| onSwipeLeft | (item: ElasticDragItem) => void | — | |
| onSwipeRight | (item: ElasticDragItem) => void | — | |
| leftActionIcon | React.ComponentType<{ className?: string }> | — | |
| rightActionIcon | React.ComponentType<{ className?: string }> | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.