Toggle Sidebar B
header.lightDarkMode D

Label

Form field label. Connects an input through the for attribute; clicking the label focuses the matching control.

Default

Plain text label tied to an input via for/id.

With checkbox

Pair with a Checkbox so the label toggles the control.

Required

Add a required marker inside the label.

API Reference

Props, events, and slots for each sub-component.

Label

Props

PropTypeDefaultDescription
forstringID of the input this label belongs to.
classstringOverride typography or spacing.