detect-autofill-react
Version:
React hook to detect browser's autofill
9 lines (8 loc) • 316 B
TypeScript
export interface AutofillElement extends HTMLElement {
isAutofilled?: boolean;
}
export type AutofillScope = HTMLElement | Document;
export declare const useAutofillDetection: (scope: AutofillScope | null) => {
isAutofilled: boolean;
autofillRef: import('react').MutableRefObject<HTMLElement | null>;
};