@cbinsights/fds
Version:
Form: A design system by CB Insights
14 lines (13 loc) • 489 B
TypeScript
import React from 'react';
export interface TooltipProps {
/** What we're showing tooltip on */
trigger: JSX.Element | string;
/** The actual content of the tooltip */
message: string;
/** Maximum width of tooltip */
maxWidth?: number;
/** Position preference of tooltip. */
position?: 'top' | 'left' | 'right' | 'bottom';
}
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
export default Tooltip;