File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,17 @@ interface TooltipImperativeOpenOptions {
50
50
* In practice, `ChildrenType` -> `React.ReactNode`
51
51
*/
52
52
content? : ChildrenType
53
+ /**
54
+ * Delay (in ms) before opening the tooltip.
55
+ */
56
+ delay? : number
57
+ }
58
+
59
+ interface TooltipImperativeCloseOptions {
60
+ /**
61
+ * Delay (in ms) before closing the tooltip.
62
+ */
63
+ delay? : number
53
64
}
54
65
55
66
interface TooltipImperativeProps {
@@ -83,7 +94,9 @@ The imperative methods <b>can</b> be applied alongside regular tooltip usage. Fo
83
94
- ` position ` overrides the tooltip position. Behaves the same as the ` position ` tooltip prop
84
95
- ` place ` overrides the tooltip placement relative to the anchor. Behaves the same as the ` place ` tooltip prop
85
96
- ` content ` overrides the tooltip content
97
+ - ` delay ` indicates how long (in ms) before the tooltip actually opens
86
98
- ` close() ` closes the tooltip programatically
99
+ - ` delay ` indicates how long (in ms) before the tooltip actually closes
87
100
88
101
#### Internal state
89
102
Original file line number Diff line number Diff line change @@ -54,10 +54,16 @@ export interface TooltipImperativeOpenOptions {
54
54
position ?: IPosition
55
55
place ?: PlacesType
56
56
content ?: ChildrenType
57
+ /**
58
+ * @description Delay (in ms) before opening the tooltip.
59
+ */
57
60
delay ?: number
58
61
}
59
62
60
63
export interface TooltipImperativeCloseOptions {
64
+ /**
65
+ * @description Delay (in ms) before closing the tooltip.
66
+ */
61
67
delay ?: number
62
68
}
63
69
You can’t perform that action at this time.
0 commit comments