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.

Parts

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

Styling

All of Form’s styles live in form.json. New to styling in Frontic UI? How styling works →

Install

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

Built from

API reference

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

Props 6

PropTypeDefault
errorsRecord<string, string | string[]>—
validationModeFieldValidationMode'onSubmit'
asChildbooleanfalse
asAsTag | Component'form'
classClassValue—
schemaStandardSchema—

Events 2

EventPayload
submitevent: SubmitEvent
formSubmitvalues: Record<string, unknown>, event: SubmitEvent

Slots 1

SlotSlot props
default{ errors: string[]; }

Recipe form 1 group

Form