Skip to content

Button

ReleasedShipped in 0.1.0StorybookFigma node 19:31Source
  • To trigger a primary action, such as submitting a form or confirming a choice.
  • When the action is a single, clear next step the user should take.
  • For calls-to-action that need visual emphasis — use the filled/primary style.
  • For secondary or less prominent actions — use the outline style instead of a second filled button.
  • To open a modal, drawer, or another view, when the action is not a navigation link.
  • For destructive actions (e.g. delete, remove), paired with the error/danger state.
  • Inside forms, toolbars, cards, and dialogs — wherever a discrete, tappable action is needed.
  • For navigation between pages or views — use a Link component instead.
    Instead: Link
  • When more than one primary action competes for attention on the same screen — keep only one primary button per view.
    The Figma page names no alternative.
  • As a label or static status indicator — use a Badge/Lozenge component instead.
    Instead: Badge/Lozenge
  • For a toggleable on/off state — use a Toggle or Checkbox component instead.
    Instead: Toggle or Checkbox

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

  • Use clear, action-oriented labels (e.g. “Save changes”, not “OK”).
  • Keep a single primary (filled) button per screen or section; make all other actions secondary/outline.
  • Always design a hover and error/disabled state so users get feedback on interaction.
  • Don’t stack more than two buttons side by side without a clear visual hierarchy.
  • Keep button labels to 1–3 words; avoid full sentences.
  • Reserve the error/outline-error state for destructive or blocking actions only.
  • Keep a minimum 40px tap target height for touch interfaces.
Property Value What it is for
state default Figma doesn’t say.
state hover Figma doesn’t say.
state error For destructive actions (e.g. delete, remove), paired with the error/danger state. Reserve the error/outline-error state for destructive or blocking actions only.
state outline For secondary or less prominent actions — use the outline style instead of a second filled button.
state outline error Reserve the error/outline-error state for destructive or blocking actions only.

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.