form-setup
core324 linesSource
Create a Standard Schema (Zod, Valibot, ArkType), call useForm with schema/initialState/onSubmit/onSubmitError, register fields with form.register(), build a toFormField mapper for v-bind, compose subforms by passing Field<T> to child components where they call field.register() for nested paths. Covers Form, Field, UseFormOptions types, submit, reset, setValues, blurAll, unregister. Load when building any Vue 3 form with formango.