# Checklist: the small steps inside a record

Checklist is how an app built on Meadowstack keeps the small steps inside a record: the sub-tasks of a task, the loading steps of a delivery, a closing routine. A tick draws itself and a line runs through the finished step, the field to add one stays open after Enter, and steps reorder by drag or from the keyboard.

Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/checklist/

*Two Brightpath tasks in the demo: left BRI-106, three of five sub-tasks done, for someone who may edit it; right BRI-101, all four done, with only onToggle passed, so there is no field to add one.*

A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/checklist/

## What it is for

Some records carry a short list of their own steps: the parts of a task, what has to be loaded before a truck leaves, the routine at closing time. They are not records of their own, with an owner and a page; they are lines to tick. `Checklist` is that list, inside the record's panel.

The preview shows two tasks from the [Brightpath example](https://meadowstack.com/examples/agency-capacity-planning/). On BRI-106 three of five sub-tasks are done: each finished one has its tick drawn and a line through its words, the progress shows how far the task is, and the field under the list adds the next step. BRI-101 is finished, and it is shown as someone without edit rights gets it: only ticking is passed, so there is no field to add, nothing to remove and nothing to drag. A [task board](https://meadowstack.com/screens/task-board/) shows the same sub-task count on each card.

The manifest keeps it inside records (`record` and `index` screens). A list of records, each with its own status and page, is a `DataTable`.

## The rules and where they live

- **A finished item's line runs across it.** The root `AGENTS.md`, Motion: the kit's `DoneText`, one element changing instead of two swapping, reduced motion keeping fades only.
- **Drag works from the keyboard too, with announcements.** `docs/patterns.md`, Lists, boards and records (`SortableBoard`, `SortableList`); `AGENTS.md`, Keyboard: arrows in lists, Space picks an item up.
- **Rows keep one height; ticking never changes a row's height.** `AGENTS.md`, under rows in a list.
- **Checkboxes are big enough to hit.** The runtime audit rule `target-size` (`e2e/audit/rules.ts`, `docs/audit.md`) wants checkboxes 24 × 24 with their label.
- **Changes are optimistic.** `docs/principles.md`, Response time: the tick shows at once, the request follows, a toast on failure.
- **Hide what the person cannot do.** `AGENTS.md`, Permissions and audit: leave out `onAdd`, `onRemove` and `onReorder` for someone who may only tick.
- **No own checkbox in an app.** The static guard `bare-control` in `scripts/check-markup.mjs` fails an app's own `input`.

## What AI coding tools write instead

The manifest names **a list of checkboxes with hand-made adding and reordering**. Typically that is native checkboxes beside text, an "Add item" button that opens a dialog for every step or a field that closes after each one, and reordering with up and down arrows or not at all. A strike-through that wraps makes the row taller, so the list jumps when someone ticks. Dragging, where it exists, needs a mouse, and the controls for adding and deleting show for everyone, whatever they may do.

`Checklist` puts those decisions in one place: the tick and the line are the kit's motion, the add field stays open so a routine of five steps is five lines of typing, reordering is `SortableList` with the keyboard and screen reader support it has on boards, and the handlers you leave out decide what a person can change.

## How to use it

| Prop | What it takes |
| --- | --- |
| `label` | The list's name, such as "Sub-tasks". |
| `items` | `ChecklistItem[]`: `id`, `title`, `done`. |
| `onToggle` | Gets the item's id and its new `done`. |
| `onAdd` | Gets the title of a new step; leave it out and the field disappears. |
| `onRemove`, `onReorder` | Removing one, and a move as `{ from, to }`; leave them out for people who may not edit. |
| `addLabel`, `className` | The add field's label, and your layout. |

## Its entry in the manifest

*The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.*

| Manifest field | Checklist |
| --- | --- |
| What it is | The small steps inside a record, ticked, reordered and added in one go. |
| Use it for | Sub-tasks of a task, the loading steps of a delivery, a closing routine. |
| Not for | For a list of records (DataTable) |
| It replaces | A list of checkboxes with hand-made adding and reordering |
| Screen types | Record; Index |
| Import | `import { Checklist } from "@meadowstack-studio/kit";` |

Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server.

## Where the example apps use it

*The example apps and modules that render Checklist, read from the demo's code when the site builds.*

| Example app | Modules that render it |
| --- | --- |
| [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Tasks |
| [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | Handbook |
| [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Content, Training |

Read from the demo's source when the site was built: 3 of 9 example apps render <Checklist>, in the modules named here as each app's sidebar names them.

## How the demo calls it

*The task panel's sub-tasks: anyone who sees the task may tick, while adding, removing and reordering are passed only when the person may edit it. Every change saves the whole list.*

From `apps/demo/src/modules/tasks/components/issue-panel.tsx` in the Meadowstack repository:

```tsx
<Checklist
  label={tx("Podúkoly", "Sub-tasks")}
  addLabel={tx("Přidat podúkol", "Add sub-task")}
  items={issue.subTasks}
  onToggle={(id, done) => saveSubTasks(issue.subTasks.map((task) => (task.id === id ? { ...task, done } : task)))}
  onAdd={
    editable
      ? (title) => saveSubTasks([...issue.subTasks, { id: `st-${issue.id}-${Date.now()}`, title, done: false }])
      : undefined
  }
  onRemove={editable ? (id) => saveSubTasks(issue.subTasks.filter((task) => task.id !== id)) : undefined}
  onReorder={
    editable
      ? ({ from, to }) => {
          const next = issue.subTasks.slice();
          const [moved] = next.splice(from, 1);
          next.splice(to, 0, moved!);
          void saveSubTasks(next);
        }
      : undefined
  }
/>
```

## Questions

### Can people reorder steps without a mouse?

Yes. A step is picked up with Space, moved with the arrow keys and put down again, and each move is announced to screen readers, the same way cards move on the kit's boards.

### How do you add several steps in a row?

Type a step and press Enter: it is added and the field stays open for the next one, so a routine of five steps takes five lines of typing.

### Can someone without edit rights tick a step?

That is the app's choice. The demo lets everyone who sees a task tick its sub-tasks and passes adding, removing and reordering only to people who may edit, so the others never see those controls.

### When is a checklist the wrong component?

When each item is a record of its own, with a status, an owner and a page. That is a list of records, which is a DataTable.

## Related

- [RecordPeek: open a record without losing the list](https://meadowstack.com/components/record-peek/) (Components)
- [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens)
- [A restaurant rota planned against the takings](https://meadowstack.com/screens/staff-rota/) (Screens)
- [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/) (Screens)
- [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens)
- [Composer: writing next to a record](https://meadowstack.com/components/composer/) (Components)
