DocsComponentsTemplatesThemesGitHub

Forms

One recipe for every form: useForm, Form and FormRow.

Bindings

f.field('email')             // text inputs
f.field('role', 'value')     // Select, MultiSelect, DatePicker, NumberInput, RadioGroup
f.field('terms', 'checked')  // Checkbox, Switch

Rules

  • The required rule adds the asterisk and aria-required.
  • Errors show after a field loses focus, and for every field on submit.
  • Server errors: reject with { fieldErrors } or an Error.
  • Two columns on desktop, one under 640px.
  • Actions sit bottom right: Cancel, then the submit button.