UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

15 lines (14 loc) 719 B
import { FC } from 'react'; import type { Instance as TippyInstance } from 'tippy.js'; import { TippyProps } from '@tippyjs/react'; export type LazyTippyProps = TippyProps & { setInstance?: (instance?: TippyInstance) => void; continuePropagationOnTrigger?: boolean; }; /** * The LazyTippy component is used to "lazify" the Popover. * By default the `tippy.js` library mounts the content of the Popover in the DOM (hidden through styling), before it is shown * (which means that it could, if its used a lot, polute the DOM tree). Therefore the Popover has to be * lazified so that it will only be mounted to the DOM, whenever it is triggered to do so. */ export declare const LazyTippy: FC<LazyTippyProps>;