Swipe to Delete
An iOS-style swipeable list-item wrapper that reveals a delete action on drag, pops the icon at the commit threshold, and collapses the row before firing onDelete.

- Library
- Spectrum UI
- Framework
- React
- Type
- component
- License
- Apache-2.0
- Dependencies
- framer-motion, lucide-react
- Install
npx shadcn@latest add @spectrumui/swipe-to-delete- Files
app/registry/swipe-to-delete/swipe-to-delete.tsxlib/utils.ts
- Source
- https://github.com/arihantcodes/spectrum-ui
Categories
- Action Components
- React Action Components
- Tailwind CSS Action Components
- Animated Action Components
- Data Display Components
- React Data Display Components
- Tailwind CSS Data Display Components
- Animated Data Display Components
- List Components
- React List Components
- Tailwind CSS List Components
- Animated List Components