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.

Replay preview

With Field

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

Replay preview

This is your public display name.

With checkbox

Pair with a Checkbox so the label toggles the control.

Replay preview

Required

Add a required marker inside the label.

Replay preview

API Reference

Label

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