UNPKG

659 BTypeScriptView Raw
1import * as React from 'react';
2import type { RenderFunction } from '../_util/getRenderPropValue';
3import type { AbstractTooltipProps } from '../tooltip';
4import PurePanel from './PurePanel';
5export interface PopoverProps extends AbstractTooltipProps {
6 title?: React.ReactNode | RenderFunction;
7 content?: React.ReactNode | RenderFunction;
8 onOpenChange?: (open: boolean, e?: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLDivElement>) => void;
9}
10declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<unknown>> & {
11 _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
12};
13export default Popover;