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, SwitchRules
- The
requiredrule adds the asterisk andaria-required. - Errors show after a field loses focus, and for every field on submit.
- Server errors: reject with
{ fieldErrors }or anError. - Two columns on desktop, one under 640px.
- Actions sit bottom right: Cancel, then the submit button.