Seed Bible extension API (v1.19.0) / seed-bible/components / UsePopoverOptions
Interface: UsePopoverOptions
Properties
anchorRef
anchorRef: RefObject<HTMLElement>;The element the popover opens beside, usually its trigger or the trigger's wrapper.
contentRef
contentRef: RefObject<HTMLElement>;The popover's own element, so a press on it doesn't count as outside.
dismissible?
dismissible?: boolean;Whether Escape, Tab and a press outside close it. Turn it off while something else holds it open and owns the keyboard (a tour step).
gap?
gap?: number;onClose
onClose: () => void;Asks to close: Escape, Tab, or a press outside.
Returns
void
open
open: boolean;returnFocusRef?
returnFocusRef?: RefObject<HTMLElement>;Where focus goes when Escape or Tab closes it, usually the trigger.