UNPKG

777 BTypeScriptView Raw
1import * as React from 'react';
2import type { RenderFunction } from '../_util/getRenderPropValue';
3import type { AbstractTooltipProps, TooltipRef } 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 InternalPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<TooltipRef>>;
11type CompoundedComponent = typeof InternalPopover & {
12 _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
13};
14declare const Popover: CompoundedComponent;
15export default Popover;