Swipeable List

Preview

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—
labels?
Partial<{ actionsFor: string; showActions: string; }>

Override any built-in string.

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