UNPKG

@hakuna-matata-ui/hooks

Version:
10 lines 440 B
import { FocusableElement } from "@hakuna-matata-ui/utils"; import React from "react"; export interface UseFocusOnShowOptions { visible?: boolean; shouldFocus?: boolean; preventScroll?: boolean; focusRef?: React.RefObject<FocusableElement>; } export declare function useFocusOnShow<T extends HTMLElement>(target: React.RefObject<T> | T, options?: UseFocusOnShowOptions): void; //# sourceMappingURL=use-focus-on-show.d.ts.map