Skip to content

SlideItem ​

Swipe a row to reveal actions

A list row that slides aside to show actions — archive, delete — as in phone mail apps. The same actions must be reachable without a swipe, which the keyboard does: tabbing into them slides them into view.

Basic
加藤恵
英梨々
詩羽
美智留
Swipe a row left to delete, right to pin. Drag with the mouse on desktop. Actions fire on release past 80px; sticky keeps them open instead.
  • A swipe right reveals #left, a swipe left reveals #right. Without sticky, passing threshold fires @left / @right with a reset; with sticky the actions stay open until reset.

Usage ​

ts
import { BlessSlideItem } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
thresholdnumber80px of travel to trigger
stickyboolean—keep the actions revealed after release instead of firing
disabledboolean—

Events

NamePayloadDescription
left[reset: () => void]
right[reset: () => void]
slide[side: "left" | "right" | null]

Slots

NameScopeDescription
defaultany
left{ reset: () => void; }
right{ reset: () => void; }

Exposed

NameTypeDescription
reset() => void

Released under the MIT License. Character names and artwork belong to their owners.