Swipeable List

Preview

Priority queue

Ready

Launch brief
Finalize the announcement copy
9:41
Client feedback
Three comments need a response
11:08
Design review
Check spacing before handoff
13:20
Flagged run
Retry queue has one failed job
Now
4 openToday

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/swipeable-list

API Reference

items
SwipeableListItem[]
Default—
value?
SwipeableListValue | null
Default—
defaultValue?
SwipeableListValue | null
Defaultnull
onValueChange?
((value: SwipeableListValue | null) => void)
Default—
onAction?
((payload: { item: SwipeableListItem; action: SwipeAction; side: SwipeSide; }) => void)
Default—
actionWidth?
number
Default56
revealThreshold?
number
Default34
closeOnAction?
boolean
Defaulttrue
className?
string
Default—
classNames?
SwipeableListClassNames
Default—
renderItem?
((item: SwipeableListItem) => ReactNode)
Default—
Also on React Native. Rows that swipe to reveal actions.

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated