Accessible form label that associates with its control.

npx slipstream-ui@latest add label
Usage

Props

PropTypeDefaultDescription
htmlForstring—The id of the control this label describes.
childrenReactNode—The label text.

Accessibility

  • htmlFor/id pairing links the label to its control.
  • Placeholders are not a replacement for labels.