Skip to content

Form

ReleasedShipped in 0.3.0StorybookFigma canvas 57:1649Source
  • Use type section for a form inside a page, such as Profile, payment details or back office settings, with a Save changes and Cancel group at the end.
  • Use type card for a short form on its own, such as Sign in, Create your account or Invite someone, with one full-width button.
  • Build every input from textfield; use Dropdown, Checkbox, Radiocard or Toggle in the same stack when a field is a choice.
  • Label every field above the input, and keep placeholders for examples, never for the label.
  • Show an error under the field that caused it and say how to fix it, such as “Use a full email address”; keep what the person typed.
  • Ask only for what you need, in the order people think about it, and put the main action last.
  • For one setting that applies at once: use a Toggle, without a Save button.
    Instead: Toggle
  • To search or filter a list: use Searchbar or Chip filters.
    Instead: SearchBar
  • For a long flow such as booking: split it into steps with Stepper type progress.
    Instead: Stepper

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

  • Label every field above the input, and keep placeholders for examples, never for the label.
  • Show an error under the field that caused it and say how to fix it, such as “Use a full email address”; keep what the person typed.
  • Ask only for what you need, in the order people think about it, and put the main action last.
Property Value What it is for
type section a form inside a page, such as Profile, payment details or back office settings, with a Save changes and Cancel group at the end
type card a short form on its own, such as Sign in, Create your account or Invite someone, with one full-width button

The stories compose Form with: Dropdown, Checkbox, Toggle.

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.