Skip to content

Checkbox

ReleasedShipped in 0.2.0StorybookFigma node 118:2Source
  • To let the user opt in to something, such as marketing emails or staying signed in.
  • To confirm the user has read and agreed to terms before they continue, such as the booking terms or cancellation policy.
  • To make the user acknowledge a destructive action before it runs, using the error state (for example, “I understand this is permanent”).
  • For a list of options where the user can choose any number, such as search filters.
  • For a setting that takes effect immediately: use the Toggle component instead.
    Instead: Toggle
  • When the user must pick exactly one option from a list: use the Radiocard component instead.
    Instead: Radiocard
  • To trigger an action: use the Button component instead.
    Instead: Button

From the Figma documentation page (usage node 118:10), as written. These items aren’t carried into Checkbox.intent.json, which has no field for them.

  • Always give the checkbox a visible label that says what ticking it does.
  • Write labels as positive statements (“Email me deals”), not negatives (“Don’t email me”).
  • Leave opt-in checkboxes unticked by default.
  • Make the whole label clickable, not just the 16px box.
  • Use the error state only for acknowledging destructive or irreversible actions.
  • Put extra detail in helper text below the label, not in the label itself.
Property Value What it is for
state unchecked default
state checked The tick shows the checked state, so it doesn’t rely on colour alone.

From Versioning (VERSIONING.md at b9ffb76):

0.3.0 adds six components on top of 0.2.1: Calendar, Card, Form, Modal, SideBar and Table. It contains twenty-three components, each exported from the package root with its props type: Avatar, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Chip, Dropdown, File, Form, Header, Image, Link, Logo, Modal, ProgressBar, RadioCard, SearchBar, SideBar, Stepper, Table, Toggle. Textfield is exported from the package root as well, with TextfieldProps and TextfieldState, and is public like the others (see decisions.md, 2026-10-07, Textfield). It commits you to their props, prop values and defaults, their hz- class names, the tokens in tokens.css and the three entry points (., ./styles.css, ./tokens.css). Everything in 0.3.0 beyond 0.2.1 is an addition: nothing from 0.2.1 was changed, removed or renamed. A change that breaks any of these on 0.x bumps the version to 0.4.0.

Two things about this release are worth knowing:

  • Form, Modal and Table each passed release review with their literal sizes covered by a ruling in decisions.md (Card, SideBar and Calendar have their own), because no size tokens exist for them. Those literals are accepted until the designer adds matching tokens, so a later change to use tokens at the same rendered sizes would be a patch, not a breaking change.
  • Dark theme is not verified for Table, and its warning tag has low contrast. The Table docs page says so. Neither is a breaking-change risk, but a fix that changes a token’s value is a patch and is listed in the changelog.