Make form elements more accessible.
Property |
Attribute |
Type |
Default |
Description |
for |
for |
string |
|
Query of the form element click events are re-fired upon. |
nowrap |
nowrap |
boolean |
false |
Caps the label element with ellipsis if overflowing. |
required |
required |
boolean |
false |
Styles the label as required. |
Property |
Description |
--label-color |
Color. |
--label-color-required |
Color of the asterisk (*) when required attributed is present. |
Name |
Description |
|
Default content. If the first element is a form element, clicks on the entire label will be re-fired upon that element. |
Go here to try the demo.
Licensed under MIT.