Label

A text label for form controls. Render a native <label htmlFor="…"> (or wrap the control) so clicks focus the input. size picks the type scale; hint also mutes the color for helper text.

Props

PropTypeDefaultDescription
size'xs' | 'sm' | 'lg' | 'hint''sm'Type scale (hint is muted).
classNamestringExtra classes.

All native <label> attributes (htmlFor, …) are forwarded.