Skip to content

Components

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.

By Bohuslav PoláčekChecked

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.

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. 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 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

Its entry in the manifest

The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.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.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

apps/demo/src/modules/tasks/components/issue-panel.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
  }
/>
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.

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.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app