UNPKG

2.15 kBTypeScriptView Raw
1/// <reference types="react" />
2import { AbstractPureComponent2 } from "../../common";
3import { IntentProps } from "../../common/props";
4import { PopoverInteractionKind } from "../popover/popover";
5import { IPopoverSharedProps } from "../popover/popoverSharedProps";
6export declare type TooltipProps = ITooltipProps;
7/** @deprecated use TooltipProps */
8export interface ITooltipProps extends IPopoverSharedProps, IntentProps {
9 /**
10 * The content that will be displayed inside of the tooltip.
11 */
12 content: JSX.Element | string;
13 /**
14 * The amount of time in milliseconds the tooltip should remain open after
15 * the user hovers off the trigger. The timer is canceled if the user mouses
16 * over the target before it expires.
17 *
18 * @default 0
19 */
20 hoverCloseDelay?: number;
21 /**
22 * The amount of time in milliseconds the tooltip should wait before opening
23 * after the user hovers over the trigger. The timer is canceled if the user
24 * mouses away from the target before it expires.
25 *
26 * @default 100
27 */
28 hoverOpenDelay?: number;
29 /**
30 * The kind of hover interaction that triggers the display of the tooltip.
31 * Tooltips do not support click interactions.
32 *
33 * @default PopoverInteractionKind.HOVER_TARGET_ONLY
34 */
35 interactionKind?: typeof PopoverInteractionKind.HOVER | typeof PopoverInteractionKind.HOVER_TARGET_ONLY;
36 /**
37 * Indicates how long (in milliseconds) the tooltip's appear/disappear
38 * transition takes. This is used by React `CSSTransition` to know when a
39 * transition completes and must match the duration of the animation in CSS.
40 * Only set this prop if you override Blueprint's default transitions with
41 * new transitions of a different length.
42 *
43 * @default 100
44 */
45 transitionDuration?: number;
46}
47/** @deprecated use { Tooltip2 } from "@blueprintjs/popover2" */
48export declare class Tooltip extends AbstractPureComponent2<TooltipProps> {
49 static displayName: string;
50 static defaultProps: Partial<TooltipProps>;
51 private popover;
52 render(): JSX.Element;
53 reposition(): void;
54}