Skip to content
nexubDesign System
v11.9.0

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';
View as Markdown

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

  • Unlimited projects
  • Priority support
  • Single sign-on (SAML)

With CheckListItem

  • At least 12 characters
  • One number (0–9)
  • Not used on another account

Done and pending

Setup steps with a status each.

  • Create workspace, Done
  • Connect bank account, Done
  • Invite your team, Pending
  • Send first invoice, Pending

Props

Props
PropTypeDefaultDescription
items(string | CheckListEntry)[]—Plain-text items. Shorthand for one CheckListItem each. 11.3: an object entry sets a status.
childrenReact.ReactNode—CheckListItems, for items with markup. Rendered after items.
CheckListItem childrenrequiredReact.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 statusLabelstring'Done' / 'Pending'11.3: the words read for status, for other languages.

On iOS & Android