File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,15 @@ export interface TooltipProps {
57
57
// Time delay for showing popup
58
58
delayShow ?: number ;
59
59
// Custom event to trigger tooltip
60
- event ?: string ;
60
+ event ?: keyof HTMLElementEventMap | string ;
61
61
// Custom event to hide tooltip
62
62
// (this requires the event prop as well)
63
- eventOff ?: string ;
63
+ eventOff ?: keyof HTMLElementEventMap | string ;
64
64
// When set to true, custom event's propagation
65
65
// mode will be captue
66
66
isCapture ?: boolean ;
67
67
// Global event to hide tooltip
68
- globalEventOff ?: string ;
68
+ globalEventOff ?: keyof HTMLElementEventMap | string ;
69
69
// Function to dynamically generate the tooltip content
70
70
getContent ?: GetContent ;
71
71
// Callback after tooltip is shown
@@ -109,6 +109,7 @@ export interface TooltipProps {
109
109
}
110
110
111
111
// ReactTooltip component is the default export
112
+ // You can overview demo examples here: https://bddeu.csb.app
112
113
export default class ReactTooltip extends React . Component < TooltipProps > {
113
114
// static methods
114
115
static show : ( target : Element ) => { } ;
You can’t perform that action at this time.
0 commit comments