import { Placement } from '@popperjs/core'; import React from 'react'; import { PopperProps } from 'react-popper'; export interface IPopup { /** Mandatory children */ children: React.ReactNode; /** Fallback placements */ fallbackPlacements?: Placement[]; /** Popper offset https://popper.js.org/docs/v2/modifiers/offset/. Input should be [0, 0] */ offset?: any; /** Popper props for placement derived from [here](https://popper.js.org/docs/v2/constructors/#placement) */ placement?: PopperProps['placement']; /** Default true with offset is 8px. custom offset can override this */ hasOffset?: boolean; /** Option to turn off use portal. Especially useful for SSR */ usePortal?: boolean; /** Inline style, mainly to dictate the maximum width */ style?: object; /** Popup delay */ delay?: number; /** Mandator content inside popup */ renderContent: () => React.ReactNode; containerStyle?: object; portalDom?: () => HTMLElement; } /** * Popup element utilizes tippy's shift away https://github.com/atomiks/tippyjs/blob/master/src/scss/animations/shift-away.scss. * In order for this to work, the div container must start with opacity 0. Furthermore, the transition group state css is * controled by global.css */ export declare const Popup: React.FC;