form

Form

Validates its fields on submit, against their own rules or one Standard Schema such as Zod 4, hands over their values, and shows server errors on the field they name.

States: Default

Parts

PartFileDoes
FormForm.vueValidates its fields on submit, hands over their values, and shows server errors on the field they name.

Styling

PartRecipe
Formform

Install

Writes 3 files into components/ui/form/. For agents, npx @frontic/ui docs form prints this reference as markdown; the MCP server serves the same.

Installs with it
field
npm packages
@standard-schema/spec
@vueuse/core
reka-ui

Built from

API reference

Form Form.vue

Validates its fields on submit, hands over their values, and shows server errors on the field they name. Renders a <form>.

PropTypeDefault
errorsRecord<string, string | string[]>—
validationModeFieldValidationMode'onSubmit'
asChildbooleanfalse
asAsTag | Component'form'
classClassValue—
schemaStandardSchema—
EventPayload
submitevent: SubmitEvent
formSubmitvalues: Record<string, unknown>, event: SubmitEvent
SlotSlot props
default{ errors: string[]; }
Recipe formSets
base: form 4 properties
Example