Label

Dark Mode

Label can be used to compose custom form components.
It is reused by all form components to render the input label.

It is considered a internal core component and should only be used with caution.

Do's & Don'ts

It is not intended for pure visual use. It render's a

label
tag and requires a corresponding input component.

API Reference

Prop
Type
Default
Description
name
string
The id of the related input field
children
React.ReactNode
Label content
disabled
boolean
Whether the input, and thus label, is disabled

Examples

Disabled

name

In order to correctly link the label to a input component, one must provide the same name to both components.