Skip to main content

Tooltip

The Tooltip component displays informative text when a user hovers over, focuses on, or taps an element.

Properties

NameTypeDefaultDescription
titlenodeOpens the typography subcomponent used to define the text for the tooltip.
openboolfalseIf true, the tooltip component is shown.
disableInteractiveboolfalseIf true, the tooltip is non-interactive.
disableFocusListenerboolfalseIf true, will not respond to focus events.
disableHoverListenerboolfalseIf true, will not respond to hover events.
disableTouchListenerboolfalseIf true, will not respond to long press touch events.
enterDelaynumber100Defines the number of milliseconds to wait before showing the tooltip.
enterNextDelaynumber0Defines the number of milliseconds to wait before showing the tooltip when one was recently opened.
enterTouchDelaynumber700Defines the number of milliseconds a user must touch an element before the tooltip is shown.
leaveDelaynumber0Defines the number of milliseconds to wait before hiding the tooltip.
leaveTouchDelaynumber1500Defines the number of milliseconds after a user stops touching an element before hiding the tooltip.

Style Attributes

NameTypeDefaultDescription
placementbottom-end
bottom-start
bottom
left-end
left-start
left
right-end
right-start
right
top-end
top-start
top
string
bottomDefines the placement of the tooltip.
arrowboolfalseIf true, adds an arrow to the tooltip.

Subcomponents

The Tooltip component has two typography subcomponents used to create text for a typography element and the tooltip text.

Typography

Specifies text for the typography element and the tooltip.

For further details, see the Typography component.

Properties

NameTypeDefaultDescription
textstringDefines the text to use.
varianth1
h2
h3
h4
h5
h6
subtitle1
subtitle2
body1
body2
caption
button
overline
inherit
string
inheritDefines the type of typography to display.
colorinitial
inherit
primary
secondary
textPrimary
textSecondary
error
string
inheritDefines the color of the typography.
gutterBottomboolfalseEnables a gutter at the bottom of the typography component.

For more detail on the Tooltip component, see the MUI developer docs.