Modular Forms
GuidesAPI referencePlayground
SolidJSPreactReact
  • Actions

    • formAction$
  • Hooks

    • useForm
    • useFormStore
  • Components

    • Field
    • FieldArray
    • Form
  • Methods

    • clearError
    • clearResponse
    • focus
    • getError
    • getErrors
    • getValue
    • getValues
    • hasField
    • hasFieldArray
    • insert
    • move
    • remove
    • replace
    • reset
    • setError
    • setResponse
    • setValue
    • setValues
    • submit
    • swap
    • validate
  • Validation

    • custom$
    • email
    • maxLength
    • maxRange
    • maxSize
    • maxTotalSize
    • mimeType
    • minLength
    • minRange
    • minSize
    • minTotalSize
    • pattern
    • required
    • url
    • value
  • Transformation

    • toCustom$
    • toLowerCase
    • toTrimmed
    • toUpperCase
  • Exceptions

    • FormError
  • Adapters

    • valiField$
    • valiForm$
    • zodField$
    • zodForm$
  • Types

    • FieldArrayStore
    • FieldElement
    • FieldElementProps
    • FieldEvent
    • FieldStore
    • FieldValue
    • FieldValues
    • FormActionResult
    • FormActionStore
    • FormErrors
    • FormOptions
    • FormResponse
    • FormStore
    • InitialValues
    • Maybe
    • MaybeArray
    • MaybeFunction
    • MaybePromise
    • MaybeValue
    • PartialValues
    • ResponseData
    • SubmitHandler
    • TransformField
    • ValidateField
    • ValidateFieldArray
    • ValidateForm

zodForm$

Creates a validation functions that parses the Zod schema of a form.

const validate = zodForm$(schema);

Parameters

  • schema MaybeFunction<ZodType<any, any, FieldValues>>

Return

  • validate QRL<(values: PartialValues<FieldValues>) => FormErrors>
Edit page
Next page
© 2025 Fabian Hiller
ContactPrivacy