@hakuna-matata-ui/hooks
Version:
React hooks for Chakra components
10 lines • 440 B
TypeScript
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