Seed Bible extension API (v1.19.0) / seed-bible/components / Popover
Function: Popover()
function Popover(__namedParameters: PopoverProps): VNode<any> | null;A small panel that opens beside the button that opened it: draws into document.body so no scroll area clips it, sits over the page, and closes on Escape, Tab or a press outside. It has no look of its own beyond how it opens; give it a className that sets the surface, and a role and name that say what it is (a dialog of controls, a listbox, ...).
Open it from a trigger that sets aria-haspopup and aria-expanded, and pass the trigger as returnFocusRef so a keyboard user lands back on it. For a menu of actions use ContextMenuWithButton, which is built on the same behavior.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | PopoverProps |
Returns
VNode<any> | null