Skip to content
caliper ui docs

Pro

Lift list

A list you reorder by picking a row up. The row you hold comes off the page, rises toward you and leans a few degrees the way you move, and a dashed slot shows where it will land. Space picks up, the arrows move, Space drops, Escape puts it back.

Pro
pnpm dlx shadcn@latest add @caliper/lift-list

Launch checklist

Five tasks left before the 2.4 release on Thursday 30 October.

  • Write release notesMira
  • Review pricing copyPriya
  • Fix 320px overflow on the indexDev
  • Record motion clipsSam
  • Publish changelogMira

Drag the grip, or focus it and press Space, then use the arrow keys.

Installs components/ui/lift-list.tsxDepends on @radix-ui/react-slot, lucide-reactMotion honours reduced motion

When to use

Use it for

  • Priorities, checklists and queues where order matters and the list is short.
  • Anywhere a drag handle needs a clear picked-up state.

Skip it when

  • Long lists; use the sortable list with scrolling.
  • Tables, which have their own row behaviour.

Decisions

Why it is built this way, so you know what to keep when you change your copy.

Behaviour

The slot stays visible
Lift never hides the landing place: the dashed slot moves with the order while the lifted row follows your pointer.
Only the grip drags
On touch, the rest of the row still scrolls the page. The grip is 44px tall and has touch-action none.

Styling

Lean is limited and tied to speed
At most 7 degrees, from the drag velocity, and none under reduced motion.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/lift-list

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { LiftList } from "@/components/ui/lift-list"

The worked example comes with Pro

The 44-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

LiftList

component
PropTypeDefault
label *string—
items *readonly LiftItem[]—
onReorder *(ids: string[]) => void—
rowHeightnumber52
gapnumber6
statusDepthStatus"ready"
messagesDepthMessages—
onRetry(() => void)—
disabledboolean—
classNamestring—

Accessibility

It is built on native elements and keeps aria-label, aria-pressed, aria-hidden and aria-live in step with state. Changes that matter are announced through a live region.

KeyBehaviour
SpaceActivates the focused control.
EnterActivates the focused control.
↑Moves to the previous item or value.
↓Moves to the next item or value.
EscapeCloses or cancels, then returns focus to where it came from.

Motion

It checks prefers-reduced-motion itself and settles immediately instead of travelling. Every state is still reachable.

All Surfaces examples