Label
Examples
Base #
Required / Optional #
Use attribute required
or optional
if you need to indicate required / optional fields.
Sizes #
Label supports the following sizes: xs
, sm
, md
, lg
, xl
. The default size is md
.
Associate label with form elements #
Label is important for accessibility of form elements.