Skip to content

Button

A control that performs an action in place, such as submitting a form or opening a dialog, without changing the URL.

Maturity
beta
Links
Storybook · Figma: Button · Figma: Button icon · Spec source · Usage source

Use cases

People using assistive technology should be able to:

  • Find the button and hear what it does.
  • Reach it with the keyboard and press it.
  • Know when it is disabled and skip past it.

Reading order

The visible label is the accessible name, so write it as the action ("Publish", not "Click here"). An icon-only Button has no visible label: TypeScript requires an aria-label for it.

A label button is named by its text; its icon is hidden and not announced. An icon-only button needs aria-label.

Keyboard and focus

It works like a native button: Tab reaches it, Enter or Space presses it. A disabled Button leaves the tab order, so explain nearby why an action is unavailable.

Add a cover image to publish. Publishing rules

Tab skips a disabled Button, so say in text beside it why the action is unavailable.

Every component follows ADR-025, ADR-026 and ADR-028(states, prop vocabulary, focus indicator); they are not repeated per component.