VeeValidate + Zod

Form with validation

The rules live in a single Zod schema. Every field component calls useField(name) and connects itself to the form, so the page only lists the fields.

  • Errors show after you leave a field, then update as you type.
  • The email field validates while you type, debounced by 500 ms.
  • Each field keeps one line for its message, so errors never push the form around.
  • Topic is a custom dropdown (Reka UI Select) with full keyboard support.
  • Labels, aria-invalid and aria-describedby are wired for screen readers.
  • Checkbox, radio and switch use Reka UI for keyboard support.

Source: app/components/ContactForm.vue, app/components/form/

Checked while you type

Budget
0 / 500

About one email a month. Unsubscribe any time.

Reka UI

Accordion

Source: app/components/ui/UiAccordion.vue

Reka UI

Tabs

npm install reka-ui vee-validate @vee-validate/zod zod lodash-es

Use the arrow keys to move between tabs. Source: app/components/ui/UiTabs.vue

Reka UI

Dialog

Source: app/components/ui/UiDialog.vue