Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA list whose rows swipe from either edge to reveal rounded action pills: drag past the threshold and the outermost action stretches across the row with a pop, release to commit, and deleted rows slide out and fold their height away on a spring. Rows rubber-band past the edge, open one at a time, and work from the keyboard with arrow keys, Escape and Delete. Pulling the list down from the top stretches an elastic drop that snaps into a spinner while new items spring in, with mouse, pen and touch support and instant changes under reduced motion.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { SwipeActionsListScene } from "@/components/hyperblur-pro/swipe-actions-list"
<SwipeActionsListScene />
<SwipeActionsList
defaultItems={messages}
onAction={(kind, item) => console.log(kind, item.id)}
onRefresh={async () => fetchNewest()}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| backdrop | string | "https://images.unsplash.com/photo-1505142468610-359e7d316be0" | SwipeActionsListScene: photo behind the glass panels. |
| avatars | string[] | 8 Unsplash portraits | SwipeActionsListScene: avatars used in the sample messages. |
| title / subtitle | string | "Swipe it. Feel it." | SwipeActionsListScene: heading and paragraph. |
| showDark | boolean | true | SwipeActionsListScene: show a second list in dark appearance that refreshes on load. |
| items / defaultItems / onItemsChange | SwipeItem[] | [] | SwipeActionsList: controlled or uncontrolled rows with title, subtitle, body, meta, avatar and unread, pinned, flagged flags. |
| onAction | (kind, item) => void | undefined | Called for delete, flag, more, read and pin, from swipes, taps or keys. |
| onRefresh | () => Promise<SwipeItem | SwipeItem[] | void> | undefined | SwipeActionsList: runs on pull to refresh; returned items spring in at the top. |
| pose | "none" | "swipe" | "refresh" | "none" | SwipeActionsList: start with two rows open, or refresh on load, for demos. |
| appearance | "light" | "dark" | "auto" | "light" | SwipeActionsList: row surfaces and text colors. |
| accent | string | "#0a84ff" | Unread dots, spinner and focus rings. |
| refraction | number | 1 | SwipeActionsListScene: lens strength of the glass panels. |
Source code is included in Pro and above