UNPKG

@procore/core-react

Version:
15 lines (14 loc) 590 B
import React from 'react'; import type { UseAvatarPopoverProps } from './useAvatarPopover.types'; /** * Manages the accessibility behavior for avatar popovers, ensuring they are keyboard navigable * * @see https://procoretech.atlassian.net/browse/UXI-1632?focusedCommentId=6513946 */ export declare const useAvatarPopover: (props: UseAvatarPopoverProps) => { triggerRef: React.RefObject<HTMLDivElement>; popoverContentRef: (node: HTMLDivElement | null) => void; beforeShow: (event: Event) => boolean; beforeHide: (event: Event) => boolean; afterHide: () => void; };