Label

Names a form control. Click the label to focus its field.

components/ui/label.tsx

Installation

npx betterone-ds add label

Props

PropTypeDefault
htmlForstring—

Accessibility

  • Every input needs a label. Match htmlFor to the input id.