@uva-glass/component-library
Version:
React components UvA
16 lines (15 loc) • 666 B
TypeScript
import { ReactNode } from 'react';
export interface TooltipProps {
/** The element which triggers the tooltip on hover. */
element: ReactNode;
/** The id of the tooltip element. */
id: string;
/** The contents of the tooltip. */
text: string;
/** The size of the tooltip. */
size?: 'small' | 'medium' | 'large';
/** <span style="color: red">**Obsolete**</span>. Used by Lens only, and should be refactored */
openUnderTrigger?: boolean;
}
/** Represents a component for a custom tooltip. */
export declare function Tooltip({ element, id, text, size, openUnderTrigger }: TooltipProps): import("react/jsx-runtime").JSX.Element;