← Components/primitives

Label

Form label. Wraps Radix Label primitive — clicking the label focuses the associated input. Use `htmlFor` to associate.

primitivesstablea11y: untested2/3 coverageEdit on GitHub ↗
primitives-label--defaultOpen all variants →

When to use

  • Pairing with a custom or non-Carbon control where you only need the label affordance (cursor, focus-on-click).
  • Building a custom field row that wants the bare-bones primitive without optional/info affordances.

When not to use