Swipe Actions
Mobile-style list: swipe a row to archive or delete, with keyboard buttons too.
Design review
Tomorrow, 11:00 AM
Invoice #1042 paid
₹12,400 received
New comment from Maya
Looks great, ship it!
Weekly report
Your stats are ready
Swipe a row left or right
Edit with AIPro
Describe a change to Swipe Actions and get the updated code. The live preview above stays as the original.
Quality report
Kinetiq VerifiedLoads cleanly
No errors on phone and desktop screens.
Fits a phone screen
No sideways scrolling at 375 px wide.
No serious accessibility problems
Passed the axe-core WCAG 2.1 A/AA check.
- Size (gzipped)
- 1.5 KB
- Extra packages
- lucide-react, motion
- Reduced motion
- Not handled in the file
Tested automatically in Chrome 157.0.8103.79 with axe-core 4.14.1. Automated tools catch only part of all accessibility problems, so treat this as a solid minimum, not a full audit.
Installation
One command
Adds the file to components/ui/swipe-actions.tsx and installs lucide-react and motion for you.
Run login once. It needs a free account, because the code is for signed-in users only. Get your token.
Or do it by hand
Install the dependencies
$ npm i motion lucide-reactSign in, open the Code tab above and copy it into
components/ui/swipe-actions.tsxUse it
The file exports the component and a
Demoshowing typical usage. Import whichever you need.