Function usePreventAutofill

This function takes an object with optional parameters and returns an object with properties and event handlers related to preventing autofill behavior on an HTMLInputElement.

  • Type Parameters

    • T = HTMLInputElement

      The type of the HTMLInputElement.

    Parameters

    • Optionalparams: Partial<IParams<T>> = {}

      An object containing optional parameters.

    Returns IResult<T>

    • An object with properties and event handlers related to preventing autofill behavior on an HTMLInputElement.