Files
wdi-dashboard/node_modules/@chakra-ui/hooks/dist/use-focus-effect.d.mts
2024-08-16 15:06:52 +05:30

14 lines
407 B
TypeScript

type UseFocusEffectOptions = {
shouldFocus: boolean;
preventScroll?: boolean;
};
/**
* React hook to focus an element conditionally
*
* @param ref the ref of the element to focus
* @param options focus management options
*/
declare function useFocusEffect<T extends HTMLElement>(ref: React.RefObject<T>, options: UseFocusEffectOptions): void;
export { UseFocusEffectOptions, useFocusEffect };