Components · Inputs
Checklist
A list of items a reader can tick off. Ticks stay on the page only.
ExamplesLink to this section
Show JSONHide JSON
{
"version": 1,
"root": "checklist",
"elements": {
"checklist": {
"type": "Checklist",
"props": {
"title": "Launch",
"items": [
{ "label": "Write release notes", "checked": true },
{ "label": "Tag the release" },
{ "label": "Tell the team" }
]
}
}
}
}PropsLink to this section
Generated from the zod schema the server validates with. Unknown props are ignored with a warning. Any prop can also be a dynamic value such as { "$state": "/path" }; it is checked again once it resolves.
| Prop | Type | Limits and defaults |
|---|---|---|
| title | string | max 160 chars |
| itemsrequired | object[] | max 100 items |
| items[].labelrequired | string | max 300 chars |
| items[].checked | boolean | — |
RulesLink to this section
- Ticks stay on the reader's page only. Use
checkedfor items that are already done.
Children and eventsLink to this section
Checklist is a leaf: it does not show children. Validation warns when a leaf has some; wrap them in a Stack or Card instead.
It emits no events.