Skip to content

Forms

Open “Forms” in a new tab ↗
Pattern Markup
Input / textarea / select .field or bare input / textarea / select
Input group (icon + button) .input-group; paste button data-paste="#id"
Add-ons .addon-group + .addon
Password .pw + .pw-toggle + .pwbar
Searchable select .combo + data-combo
Choice .choice · .switch · .check
Range input.slider · dual .dual + data-dual
Numeric .stepper · .amount-field + data-amount
Tags / OTP / upload .tagsinput · .otp · .dropzone

.field-row + .label/.fld (+.req/.opt) + .fhelp / .ferr / .fok; state classes .is-error / .is-success.

Add [data-validate] to a <form>. Per-field rules: required, type=email, minlength, and data-match="#otherField". On submit, invalid fields get .is-error + a .ferr message, and a summary .form-msg (.error / .ok) announces the result. Errors clear as the user types.