Hiyve Components - v1.0.0
    Preparing search index...

    Result type for the useValidation hook.

    interface UseValidationResult {
        clearError: () => void;
        error: string | null;
        isValid: boolean;
        setError: (message: string | null) => void;
        validate: () => boolean;
    }
    Index

    Properties

    clearError: () => void

    Clear the error state

    error: string | null

    Current error message, or null if valid

    isValid: boolean

    Whether the value is currently valid (no error)

    setError: (message: string | null) => void

    Set a custom error message

    validate: () => boolean

    Validate the current value and update error state