werkbank
    Preparing search index...

    Type Alias FormProps<T>

    FormProps: Omit<JSX.IntrinsicElements["form"], "onSubmit"> & {
        onSchemaIssues?: (issues: ObjectIssue[]) => void;
        onSubmit?: SubmitHandler<T>;
        schema: T;
    }

    Props for the Form component.

    Type Parameters

    • T extends FormSchema

    Type Declaration

    • OptionalonSchemaIssues?: (issues: ObjectIssue[]) => void

      Callback fired when validation fails. It receives an array of validation issues.

    • OptionalonSubmit?: SubmitHandler<T>

      Callback fired when the form is successfully validated and submitted. It receives the parsed data matching the schema.

    • schema: T

      The Valibot schema to validate the form against.