Seed Bible extension API (v1.19.0) / seed-bible/components / PopoverProps
Type Alias: PopoverProps
type PopoverProps = Omit<
JSX.HTMLAttributes<HTMLDivElement>,
"class" | "className" | "children" | "ref" | "style"
> &
Pick<
UsePopoverOptions,
"open" | "anchorRef" | "onClose" | "returnFocusRef" | "gap" | "dismissible"
> & {
children?: ComponentChildren;
class?: string;
className?: string;
contentRef?: MutableRef<HTMLDivElement | null>;
initialFocus?: string | false;
style?: JSX.CSSProperties;
};Type Declaration
children?
children?: ComponentChildren;class?
class?: string;className?
className?: string;Extra classes: the popover's size, padding and surface.
contentRef?
contentRef?: MutableRef<HTMLDivElement | null>;The popover's element, for code that has to measure or focus inside it.
initialFocus?
initialFocus?: string | false;What gets focus when it opens: a CSS selector, tried inside the popover (the chosen option), then the first thing that can take focus. false leaves focus where it was.
style?
style?: JSX.CSSProperties;Extra inline styles, merged under the placement the popover sets itself.