Toggle Sidebar B
AppearanceLight & dark mode 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.

Dark previewReplay preview

With Field

Compose Label inside Field to add a description and consistent spacing.

Dark previewReplay preview

This is your public display name.

With checkbox

Pair with a Checkbox so the label toggles the control.

Dark previewReplay preview

Required

Add a required marker inside the label.

Dark previewReplay preview

API Reference

Label

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