import { GetClasses } from '../../typeUtils'; import { PopoverInitialState, PopoverStateReturn } from 'reakit/Popover'; import * as React from 'react'; export declare const PopoverStylesKey = "ChromaPopover"; export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "root">; export declare type PopoverClasses = GetClasses; export interface PopoverRenderProps { popover: PopoverStateReturn; } export interface PopoverProps extends Pick { ['aria-label']: string; anchorElement?: any; children?: React.ReactNode | any; className?: string; title?: string; usePortal?: boolean; } /** * A popover element, anchored to another element. Typically provides additional or * actionable information to the anchor element. Popovers with specific selection * items should use `Menu` instead. * * ### Accessibility * * - The anchor element has `aria-controls` and `aria-haspopup="dialog"`. * - The content contains `role="dialog"` and `data-dialog="true"`. * - Pressing `Enter` on the focused anchor element expands the menu. * - Pressing `Escape` closes the expanded menu and returns focus to the anchor * element. * * ### Links * * - [Component Source](https://github.com/lifeomic/chroma-react/blob/master/src/components/Popover/Popover.tsx) * - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/Popover/Popover.stories.tsx) */ export declare const Popover: React.FC;