Class

TextWithHoverTooltip

TextWithHoverTooltip(props) → {React.ReactElement}

Constructor

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

Overview

The CustomTooltip component with wrapper element that hides overly long content.

Usage

You can override default Typography element that wraps the text property via children property. You can provide your own tooltip for a component via tooltipTitle property.
Parameters:
Name Type Attributes Default Description
props Object
children React.ReactNode <optional>

The content of the component.

roundNumbers boolean <optional>
true

If true any numbers will have 2 digits after decimal point.

text React.ReactNode

The content of the component and tooltip.

TooltipProps Object <optional>

Props applied to the CustomTooltip element.

tooltipTitle React.ReactNode <optional>

Optional title of the component.

TypographyProps Object <optional>

Props applied to the Typography component.

View Source Utils/DataDisplay/TextWithHoverTooltip.js, line 49

React.ReactElement