Planningstable
Checklist
Checklist with progress
A named list of native checkboxes, controlled or not, with optional progress and form submission.
Customize
Listnative checkboxes
variantshowProgressdisabledUsage
import { Checklist } from "zerogravity/checklist"
<Checklist
label="Conference prep"
items={items}
/>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
variant | "pixel" | "classic" | "minimal" | "glass" | "pixel" | Style. |
showProgress | boolean | false | Show progress. |
disabled | boolean | false | Disabled. |
items | { id, label: ReactNode, disabled? }[] | — | The entries, in order. |
label | string | — | Legend of the group. |
value / defaultValue / onChange | string[] | [] | Checked ids, controlled or uncontrolled. |
name | string | — | Submits checked ids with a form. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.