Skip to content
caliper ui docs

Pro

Checklist

A list people tick through: a ticked item is struck out where it is, then settles into Done at the bottom, so what is left stays at the top. Add from the last row, reorder with Alt+arrows, undo from the line that confirms it.

Pro
pnpm dlx shadcn@latest add @caliper/checklist

Launch: multi-currency matching

1 of 4 done

Amara Okafor · ships Tuesday 28 October

Installs components/ui/checklist.tsxDepends on lucide-reactMotion honours reduced motion

When to use

Use it for

  • Launch, onboarding or review checklists people work through.
  • Shared to-do lists inside a record.

Skip it when

  • An agent's plan that people only watch; use the todo list.
  • Tasks with owners and due dates; use a task table.

Decisions

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

Behaviour

Strike first, then move
A ticked item stays put, struck out, for a moment before it slides to Done. Moving it instantly would yank it from under the pointer and hide whether the tick landed.
Every change can be taken back
Ticks, removals and reorders each leave one line with Undo. There is no confirmation dialog for removing an item because undo is cheaper.

Styling

Animate transform, never layout
Rows slide with a transform from where they were to where they are, measured before and after the change, so the list never reflows twice.

Usage

Respect reduced motion
With reduced motion the rows move without sliding and the strike-through appears at once; the order and undo work the same.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/checklist

Adds its 3 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 { Checklist } from "@/components/ui/checklist"

The worked example comes with Pro

The 19-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

Checklist

component
PropTypeDefaultDescription
items *readonly ChecklistItem[]—
onItemsChange *(items: ChecklistItem[]) => void—
labelstring"Checklist"
placeholderstring"Add an item"
settleMsnumber600How long a ticked item stays struck out in place before it moves to Done.
classNamestring—

Accessibility

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

KeyBehaviour
↑Moves to the previous item or value.

Motion

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

All Choice groups examples