UNPKG

@chakra-ui/hooks

Version:

React hooks for Chakra components

16 lines (15 loc) 478 B
export interface UseFocusOnMouseDownProps { enabled?: boolean; ref: React.RefObject<HTMLElement>; elements?: Array<React.RefObject<HTMLElement> | HTMLElement | null>; } /** * Polyfill to get `relatedTarget` working correctly consistently * across all browsers. * * It ensures that elements receives focus on pointer down if * it's not the active element. * * @internal */ export declare function useFocusOnPointerDown(props: UseFocusOnMouseDownProps): void;