UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

14 lines (13 loc) 659 B
import * as React from 'react'; import type { RenderFunction } from '../_util/getRenderPropValue'; import type { AbstractTooltipProps } from '../tooltip'; import PurePanel from './PurePanel'; export interface PopoverProps extends AbstractTooltipProps { title?: React.ReactNode | RenderFunction; content?: React.ReactNode | RenderFunction; onOpenChange?: (open: boolean, e?: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLDivElement>) => void; } declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<unknown>> & { _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel; }; export default Popover;