Class

CustomTooltip

CustomTooltip(props) → {React.ReactElement}

Constructor

# new CustomTooltip(props) → {React.ReactElement}

Overview

The Tooltip component from Material-UI library with custom styling. For full documentation check out Material-UI docs on Tooltip.

Usage

There is a custom Wrapper element that can hold reference. This composition enables you to forward children without the ability to hold ref to the Tooltip component.
Parameters:
Name Type Attributes Default Description
props Object

Any other props will be forwarded to the Tooltip component.

classes Object <optional>

Override or extend the styles applied to the component.

className string <optional>

The class name of the Wrapper element.

disableGpu boolean <optional>
true

If true GPU acceleration will be disabled.
Disable GPU acceleration to get unblurred tooltip text in Google Chrome.

disableMaxWidth boolean <optional>
false

If true maxWidth property will be set to "none".

WrapperComponent React.ElementType <optional>
div

The component used for the wrapper element.

WrapperProps Object <optional>

Props applied to the Wrapper element.

View Source Utils/DataDisplay/CustomTooltip.js, line 66

React.ReactElement