@clarabridge/unified-react-components
Version:
Collection of Engage reusable components
25 lines (24 loc) • 1.04 kB
TypeScript
import './popover.pcss';
import React, { PropsWithChildren, ReactElement } from 'react';
import { TippyProps } from '@tippyjs/react/headless';
export type Props = PropsWithChildren<{
title?: string | ReactElement;
content: string | ReactElement;
trigger?: 'mouseenter focus' | 'click' | 'focusin' | 'mouseenter click' | 'manual';
appendTo?: TippyProps['appendTo'];
placement?: TippyProps['placement'];
reference?: TippyProps['reference'];
visible?: boolean;
}>;
declare const Popover: React.ForwardRefExoticComponent<{
title?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
content: string | ReactElement;
trigger?: "mouseenter focus" | "click" | "focusin" | "mouseenter click" | "manual" | undefined;
appendTo?: TippyProps['appendTo'];
placement?: TippyProps['placement'];
reference?: TippyProps['reference'];
visible?: boolean | undefined;
} & {
children?: React.ReactNode;
} & React.RefAttributes<HTMLElement>>;
export default Popover;