Templates
Forms
Inputs, groups, password toggle, textarea, select, checkboxes, radios, switches, and slider with native validation.
This template includes every form control in the kit. Each uses the .ui-field structure for labels, hints, and error messages. Submit the empty form to see native validation.
Included patterns
- Each control sits in a
.ui-fieldwith adata-slot="field-label"label. Adata-slot="field-description"block contains its hint and error spans. - Errors use the browser's
:user-invalidstate, so they appear after you leave a field or submit the form rather than while you type. .ui-input-groupjoins controls,.ui-field-groupgroups related fields, and<ui-password>adds a show and hide toggle configured withdata-*attributes.- Every control appears in both color schemes, making the page useful for testing
color-schemeand role tokens.
Source
Open the raw page, or read forms.html on GitHub.