UNPKG

@octopusdeploy/design-system-components

Version:
16 lines (15 loc) 875 B
import type { PropsWithChildren } from "react"; import type { SupportedAriaPopupRole } from "../../utils/SupportedAriaPopupRole"; export interface PopoverProps { placement?: PopoverPlacement; onClose?: () => void; anchorEl: null | HTMLElement; open: boolean; elementId?: string; accessibleName?: string; accessibleRole?: SupportedAriaPopupRole; boundaryPadding?: number; } export declare const popoverPlacementOptions: readonly ["auto", "bottom-end", "bottom-start", "top-start", "top-end", "left-start", "left-end", "right-start", "right-end"]; export type PopoverPlacement = (typeof popoverPlacementOptions)[number]; export declare function Popover({ children, open, anchorEl, placement, onClose, elementId, accessibleName, accessibleRole, boundaryPadding }: PropsWithChildren<PopoverProps>): import("react/jsx-runtime").JSX.Element | null;