You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| place | data-place | String |"top", "right", "bottom", "left", or comma-separated e.g. "left,right"| placement - can specify a comma-separated list of preferences that will be attempted in order|
| event | data-event | String | e.g. click | custom event to trigger tooltip |
80
80
| eventOff | data-event-off | String | e.g. click | custom event to hide tooltip (only makes effect after setting event attribute) |
81
81
| globalEventOff || String | e.g. click | global event to hide tooltip (global only) |
82
82
| isCapture | data-iscapture | Bool | true, false | when set to true, custom event's propagation mode will be capture |
83
-
| offset | data-offset | Object | top, right, bottom, left|`data-offset="{'top': 10, 'left': 10}"` for specific and `offset={{top: 10, left: 10}}` for global |
83
+
| offset | data-offset | Object |{ top?: number, right?: number, bottom?: number, left?: number }|`data-offset="{'top': 10, 'left': 10}"` for specific and `offset={{top: 10, left: 10}}` for global |
| multiline | data-multiline | Bool | true, false | support `<br>`, `<br />` to make multiline |
86
86
| className | data-class | String || extra custom class, can use !important to overwrite react-tooltip's default class |
87
-
| html | data-html | Bool | true, false |`<p data-tip="<p>HTML tooltip</p>" data-html={true}></p>` or `<ReactTooltip html={true} />`, but see [Security Note](#security-note) below.<br/>When using JSX, see [this note](#jsx-note) below. |
87
+
| html | data-html | Bool | true, false |`<p data-tip="<p>HTML tooltip</p>" data-html={true}></p>` or `<ReactTooltip html={true} />`, but see [Security Note](#security-note) below.<br/>When using JSX, see [this note](#jsx-note) below. |
88
88
| delayHide | data-delay-hide | Number ||`<p data-tip="tooltip" data-delay-hide='1000'></p>` or `<ReactTooltip delayHide={1000} />`|
89
89
| delayShow | data-delay-show | Number ||`<p data-tip="tooltip" data-delay-show='1000'></p>` or `<ReactTooltip delayShow={1000} />`|
90
90
| delayUpdate | data-delay-update | Number ||`<p data-tip="tooltip" data-delay-update='1000'></p>` or `<ReactTooltip delayUpdate={1000} />` Sets a delay in calling getContent if the tooltip is already shown and you mouse over another target |
0 commit comments