Components · Data Display
Check List
StableAdded v0.0.1
A list with a success tick before each item, for features, plan inclusions and requirements met.
import { CheckList } from '@nexub/react';Usage
Use it for
Listing what a plan or feature includes
Confirming requirements that are already met
Use something else for
Tasks the user can tick off: use `Checkbox`
Steps with progress or failures: use `PlanTracker` or `Stepper`
Examples
From items
With CheckListItem
Done and pending
Setup steps with a status each.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | (string | CheckListEntry)[] | — | Plain-text items. Shorthand for one CheckListItem each. 11.3: an object entry sets a status. |
| children | React.ReactNode | — | CheckListItems, for items with markup. Rendered after items. |
| CheckListItem childrenrequired | React.ReactNode | — | The item text. The tick is decorative (hidden from screen readers). |
| CheckListItem status | 'done' | 'pending' | — | 11.3: done draws the tick, pending an empty ring with muted text. Either is read after the text ("Done" / "Pending"). Unset draws the tick with nothing read, as before. |
| CheckListItem statusLabel | string | 'Done' / 'Pending' | 11.3: the words read for status, for other languages. |
On iOS & Android
Web only
Check List has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.