Skip to content

Tooltip API

API reference docs for the React Tooltip component. Learn about the props, CSS, and other APIs of this exported module.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

Import

import Tooltip from '@mui/joy/Tooltip';
// or
import { Tooltip } from '@mui/joy';
Learn about the difference by reading this guide on minimizing bundle size.

Props

Props of the native component are also available.

childrenRequired

arrow

color

component

describeChild

direction

disableFocusListener

disableHoverListener

disableInteractive

disablePortal

disableTouchListener

enterDelay

enterNextDelay

enterTouchDelay

followCursor

id

keepMounted

leaveDelay

leaveTouchDelay

modifiers

onClose

onOpen

open

placement

size

slotProps

slots

sx

title

variant

The ref is forwarded to the root element.

Theme default props

You can use JoyTooltip to change the default props of this component with the theme.


Slots

To learn how to customize the slot, check out the Overriding component structure guide.

root

arrow

CSS classes

These class names are useful for styling with CSS. They are applied to the root slot when specific states are triggered.

.MuiTooltip-colorContext

.MuiTooltip-colorDanger

.MuiTooltip-colorNeutral

.MuiTooltip-colorPrimary

.MuiTooltip-colorSuccess

.MuiTooltip-colorWarning

.MuiTooltip-placementBottom

.MuiTooltip-placementLeft

.MuiTooltip-placementRight

.MuiTooltip-placementTop

.MuiTooltip-sizeLg

.MuiTooltip-sizeMd

.MuiTooltip-sizeSm

.MuiTooltip-tooltipArrow

.MuiTooltip-touch

.MuiTooltip-variantOutlined

.MuiTooltip-variantPlain

.MuiTooltip-variantSoft

.MuiTooltip-variantSolid