import React, { FC } from 'react'; import { PopperChildrenProps } from 'react-popper'; type PlacementType = PopperChildrenProps['placement']; export interface Props { show?: boolean; text: string; triggerOn?: 'click' | 'hover'; onClickOutside?(): void; } /** * Tooltip component that is positioned around the component it wraps. * This component is based on react-popper, a wrapper around popper.js * [reference](https://github.com/FezVrasta/react-popper) * * @param show * Enables you to manage the visibility of the tooltip * @param text * Mandatory prop that contains the contents of the tooltip * @param triggerOn * Used to set they way the tooltip is triggered. Can't be used together with show prop. * @param onClickOutside * Function triggered when the user clicks outside of the tooltip. */ declare const Tooltip: FC>; export default Tooltip; export { PlacementType };