Skip to content

Chip

ReleasedShipped in 0.2.0StorybookFigma node 122:2Source
  • To filter a list of results, such as search filters (“Pool”, “Pet friendly”, “Free cancellation”).
  • To switch between categories of the same content, such as “All”, “Bedrooms” or “Kitchen” in a photo gallery.
  • Use the selected state (blue) for filters the user has turned on, and selected-strong (navy) for the active category in a category row.
  • To show how many items an option holds, as part of the label (for example, “Kitchen 6”).
  • To show a status such as “Confirmed” or “Pending”: use a Badge component instead.
    Instead: Badge
  • To trigger an action, such as booking or submitting: use the Button component instead.
    Instead: Button
  • For a yes or no choice inside a form: use the Checkbox component instead.
    Instead: Checkbox
  • To go to another page: use the Link component instead.
    Instead: Link

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

  • Keep labels short: one to three words, plus an optional count.
  • A chip that’s on must use a selected state, so the current selection is always visible.
  • Don’t mix selected and selected-strong chips in the same row.
  • Space chips 8px apart in one row; let the row scroll or wrap on small screens rather than shrinking the chips.
  • When several filters can be on at once, give the user a way to clear them all.
  • Mark the selected chip for assistive technology (aria-pressed or aria-selected), not with colour alone.
Property Value What it is for
state unselected default
state selected blue, a filter that’s on
state selected-strong navy, the active category in a category row
  • The control is a native <button type=“button”>, so keyboard activation, focus ring and disabled behaviour are the browser’s own. src/components/Chip/Chip.tsx:19
  • The selected state is exposed to assistive technology through aria-pressed (true for selected and selected-strong, false for unselected), and a caller-supplied aria-pressed overrides it because the passthrough props are spread after it. src/components/Chip/Chip.tsx:21
  • The label is the button’s text content, which gives it its accessible name. src/components/Chip/Chip.tsx:25

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.