An agent-style checklist: a summary line and one row per step, each with a pixel marker — a solid square for the step in flight, a hollow one for steps not started, a check for done and a cross for failed.
tsx
Working on 2 to-dos
- Done: Made new things
- Done: Read files
- Pending: Edit files
- In progress: Cooking...
<TaskList />Accessibility
Status is never colour alone: every row carries its status as visually-hidden text ("Done:",
"In progress:", …) in front of the label, and data-status on the <li> for styling hooks.
Examples
tsx
Working on 2 to-dos
- Done: Read files
- In progress: Edit files
- Pending: Run tests
<TaskList
title="Working on 2 to-dos"
items={[
{ label: "Read files", status: "done" },
{ label: "Edit files", status: "active" },
{ label: "Run tests", status: "pending" },
]}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items * | readonly | — | — |
| title | readonly | — | Summary line above the items, e.g. `"Working on 2 to-dos"`. |