Ask Rift AI
Theme: Smoke
Layout: Contained
Background: Field
Search or ask anythingAsk Rift AI
Theme: Smoke
Layout: Contained
Background: Field
Colour mode: System

Checklist

Tasks to tick off, with who owns each

Checklist lists the tasks of a setup, an onboarding or a release, each with its own done state, an owner and an action to do it, under a count done and a bar. Ticking a task moves the count. Read-only, it reports done marks the host already knows and says each row’s state in words.

Default

Get set up

2 of 4 done

Read-only

Before you publish

1 of 3 done
  • Copy reviewed, Done
  • Links checked, Not done
  • Images have alt text, Not done

Alternatives

  • Use Agent plan instead when the list is an agent’s plan that it works through itself, with live step states.

Props

Read from the same JSDoc that ships in the package's types. A required prop is marked with an asterisk.

Checklist props
PropTypeDefaultDescription
items*
ChecklistItem[]
The tasks, in the order they are best done.
title
string
The checklist's heading, which names its section. Note: this shadows the native `title` tooltip attribute, which Checklist does not expose.
values
string[]
The ids of the done tasks, for a controlled list. Leave undefined to let the list keep its own, seeded from `defaultValues`.
defaultValues
string[]
The ids done on first render when the list is uncontrolled.
onValuesChange
((values: string[]) => void)
Fires with every done id after a task is ticked or unticked.
readOnly
boolean
false
Shows the done marks without letting them change, for a list that reports what the host already knows (a setup's steps, a review's checks).
showProgress
boolean
true
Shows how many tasks are done, as a count and a bar, under the heading. Defaults to true.
progressLabel
((done: string, total: string) => string)
(done: string, total: string) => `${done} of ${total} done`
The progress count, given the done and total tasks already written in the resolved locale. Defaults to "3 of 5 done".
ownerLabel
((name: string) => string)
(name: string) => `Owner: ${name}`
The owner avatar's accessible name, given the owner's name. Defaults to "Owner: <name>".
doneLabel
string
'Done'
A read-only row's state, read after its label. Defaults to "Done".
notDoneLabel
string
'Not done'
A read-only row's state when it is not done. Defaults to "Not done".
locale
string
The BCP 47 locale the counts are written in, such as `ar-EG`. Defaults to the nearest LocaleProvider's, else `en-US`.
size
"default" | "compact"
'default'
Row density: `compact` for a checklist in a side panel.
headingLevel
2 | 4 | 3
3
The title's place in the outline. Defaults to 3, a part of a section.
className
string
''
Additional CSS classes

Tested keys

An automated test presses every row below, in a left-to-right and a right-to-left layout.

The tasks follows the WAI-ARIA checkbox pattern.

Keys the tasks is tested against
KeyWhat it does
Space
Ticks the box, or clears it when it is ticked.
tsx
// From the npm package
import { Checklist } from 'rift-ds/components/Checklist/Checklist';

// Or as source you own, via the shadcn CLI
npx shadcn@latest add https://rift-ds.com/r/checklist.json

4.0 kB gzipped, with everything it imports. Peer dependencies are not counted.

For agents: the props, their allowed values and defaults, and the tested keys, as markdown or as a JSON schema.