Skip to content
caliper ui pro docs

Sortable list

A list reordered by dragging or with keyboard commands, with undo.

Pro

Drag a handle, use its arrow keys to move, or use the move buttons. Escape cancels a drag.

  1. Review accessibility with Noor Haddad
  2. Write the v2.14 release notes
  3. Confirm EU pricing with Rafael Abreu
  4. Prepare the support handoff

When to use

  • Priorities, steps and playlists the person orders.
  • Lists that must be reorderable by keyboard too.

When not to use

  • Order is automatic; use a plain list.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/sortable-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.

API reference

SortableList

6 props
PropTypeDefault
label *string—
items *readonly T[]—
onItemsChange *(items: T[]) => void—
renderItem((item: T) => ReactNode)—
disabledbooleanfalse
classNamestring—

Keyboard

Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.
↑
Moves to the previous item or value.
Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It exposes status semantics, with aria-label, aria-describedby and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/sortable-list.md

The index of every part is at /llms.txt.

More in Dock & lists