UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

16 lines (15 loc) 822 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. * @deprecated Use the equivalent from momentum.design (NPM: `@momentum-design/components/dist/react`) */ export declare const LazyTippy: FC<LazyTippyProps>;