werkbank
    Preparing search index...

    Type Alias UseInputValidationArgs<Element, Schema>

    type UseInputValidationArgs<
        Element extends ValidateElement,
        Schema extends BaseSchema<any, any, any>,
    > = {
        name?: string;
        onBlur?: FocusEventHandler<Element>;
        onChange?: ChangeEventHandler<Element>;
        onValidationError?: OnValidationError<InferIssue<Schema>>;
        reportValidityTarget?: RefObject<HTMLInputElement | null>;
        required?: boolean;
        requireDirty?: boolean;
        validate?: Schema;
    }

    Type Parameters

    • Element extends ValidateElement
    • Schema extends BaseSchema<any, any, any>
    Index

    Properties

    name?: string
    onBlur?: FocusEventHandler<Element>
    onChange?: ChangeEventHandler<Element>
    onValidationError?: OnValidationError<InferIssue<Schema>>
    reportValidityTarget?: RefObject<HTMLInputElement | null>
    required?: boolean
    requireDirty?: boolean
    validate?: Schema