Skip to content
↑↓ to navigate↵ to openesc to close

Menu

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 your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/swipeable-list

Import the shared styles once in your application.

TSUsage
import SwipeableList from '@/components/beui/blocks/SwipeableList.vue'
import '@/components/beui/styles.css'

API Reference

items
readonly SwipeableListItem[]
Default—
value?
SwipeableListValue | null

Alias of `modelValue`, kept from the original port.

Default—
defaultValue?
SwipeableListValue | null
Defaultnull
@update:model-value?
(value: SwipeableListValue | null) => void
Default—
@action?
(payload: SwipeableListActionPayload) => void
Default—
actionWidth?
number

Width of one revealed action button in px.

Default56
revealThreshold?
number

Minimum travel before a release opens a side, in px.

Default34
closeOnAction?
boolean

Close the row after one of its actions runs.

Defaulttrue
className?
string
Default—
classNames?
SwipeableListClassNames
Default—
#renderItem?
{ item: SwipeableListItem; index: number }

Replaces a whole row's content, like the `renderItem` prop of the React version.

Default—
labels?
Partial<typeof swipeableListMessages>

Override any built-in string.

Default—
v-model?
SwipeableListValue | null

Controlled open row, as `{ id, side }`.

Default—
@value-change?
(value: SwipeableListValue | null) => void
Default—
#item?
{ item: SwipeableListItem; index: number }

Alias of `renderItem`.

Default—
#leading?
{ item: SwipeableListItem; index: number }

Replaces the `leading` text of a row, e.g. with an icon tile.

Default—
#icon?
{ action: SwipeAction; side: SwipeSide }

Icon of an action button; defaults to `action.icon` or its first letter.

Default—
Also on React Native. Rows that swipe to reveal actions.(opens in a new tab)

Updated