UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

32 lines (26 loc) 800 B
import { ReactElement } from 'react'; import { PopoverProps } from '../Popover'; import { TooltipProps } from '../Tooltip'; import { PopoverCloseButtonProps } from '../Popover/Popover.types'; export interface Props { /** * The content of the Popover. */ popoverContent: ReactElement; /** * The content of the Tooltip */ tooltipContent: ReactElement; /** * The trigger component of the Popover and Tooltip. */ triggerComponent: ReactElement; /** * An object of Popover props to be passed through to the Popover component. */ otherPopoverProps?: Partial<Omit<PopoverProps, 'id'>> & PopoverCloseButtonProps; /** * An object of Tooltip props to be passed through to the Tooltip component. */ otherTooltipProps?: Partial<Omit<TooltipProps, 'id'>>; }