useFormValidation
Clears validation errors as the user fixes them, by re-checking the form against a Zod schema. Error keys are field paths: email, or address.city for a nested field.
Install: pnpm add-composable useFormValidation
Auto-Clearing errors
Errors disappear immediately once the field becomes valid according to the schema.
API
form(Record<string, unknown>): The reactive form object.schema(ZodType | undefined): The Zod schema to check against.errors(Ref<Record<string, string>>): Messages by field path. A key is cleared once nothing at or beneath it fails; a top-level key such as address stays while any nested field is invalid.