Skip to content
Ballpoint

Checklist

A to-do list: tick an item and it's struck through with the pen; untick it and the line pulls back out.

Only in Ballpoint
Built on Base UI CheckboxGroup

Installation

pnpm dlx shadcn@latest add @ballpoint/checklist

Usage

tsx
import { Checklist, ChecklistItem } from "@/components/ui/checklist"

<Checklist defaultValue={["pens"]}>
  <ChecklistItem value="pens">Buy more blue pens</ChecklistItem>
  <ChecklistItem value="ship">Ship it</ChecklistItem>
</Checklist>

Examples

With progress

Controlled with value, feeding a Progress bar, with check-all and clear.

Launch checklist
x

Disabled items

Items that can't be ticked yet are paler; a disabled item can still arrive done.

Getting started

A card that counts down what is left and washes over when everything is done.

Getting started
3 to go.
Done so far
x

API reference

value / defaultValue
string[]

The done items, controlled or not.

onValueChange
(value: string[]) => void

Called as items are ticked and unticked.

ChecklistItem value
string

What the list reports when this item is done.

ChecklistItem disabled
boolean

Can't be ticked or unticked.

Every other prop goes to Base UI's CheckboxGroup.