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
|`REACT_TOOLTIP_DISABLE_CORE_STYLES`|`boolean`| no |`false`|`true``false`| Environment variable to disable **core** styles from being injected into the page by ReactTooltip.<br /><br /> We strongly recommend to keep the core styles being injected into the project unless you know what you are doing. |
410
+
|`REACT_TOOLTIP_DISABLE_BASE_STYLES`|`boolean`| no |`false`|`true``false`| Environment variable to disable **base** styles from being injected into the page by ReactTooltip.<br /><br /> Those styles are just visual styles like colors, padding, etc... And can be disabled if you want to write your tooltip styles. |
411
+
412
+
413
+
#### `removeStyle()` function
414
+
415
+
:::danger
416
+
417
+
This has been deprecated. Use [`disableStyleInjection`](#disabling-reacttooltip-css) instead.
418
+
419
+
:::
420
+
421
+
You can also use the `removeStyle()` function to remove injected styles from the page. It accepts the following parameters:
422
+
423
+
| name | type | required | default | values | description |
| type | string | no |`base`|`base``core`| If `core` is defined, the core styles will be removed from the page, if nothing is defined, `base` styles will be removed as default value |
426
+
427
+
```jsx
428
+
import { removeStyle } from'react-tooltip'
429
+
430
+
removeStyle() // removes the injected base style of ReactTooltip
431
+
removeStyle({ type:'core' }) // removes the injected core style of ReactTooltip - this can affect the basic functionality of ReactTooltip
0 commit comments