{ "props": { "children": { "type": { "name": "custom", "description": "element" }, "required": true }, "arrow": { "type": { "name": "bool" }, "default": "false" }, "classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } }, "components": { "type": { "name": "shape", "description": "{ Arrow?: elementType, Popper?: elementType, Tooltip?: elementType, Transition?: elementType }" }, "default": "{}", "deprecated": true, "deprecationInfo": "use the slots prop instead. This prop will be removed in a future major release. See Migrating from deprecated APIs for more details." }, "componentsProps": { "type": { "name": "shape", "description": "{ arrow?: object, popper?: object, tooltip?: object, transition?: object }" }, "default": "{}", "deprecated": true, "deprecationInfo": "use the slotProps prop instead. This prop will be removed in a future major release. See Migrating from deprecated APIs for more details." }, "describeChild": { "type": { "name": "bool" }, "default": "false" }, "disableFocusListener": { "type": { "name": "bool" }, "default": "false" }, "disableHoverListener": { "type": { "name": "bool" }, "default": "false" }, "disableInteractive": { "type": { "name": "bool" }, "default": "false" }, "disableTouchListener": { "type": { "name": "bool" }, "default": "false" }, "enterDelay": { "type": { "name": "number" }, "default": "100" }, "enterNextDelay": { "type": { "name": "number" }, "default": "0" }, "enterTouchDelay": { "type": { "name": "number" }, "default": "700" }, "followCursor": { "type": { "name": "bool" }, "default": "false" }, "id": { "type": { "name": "string" } }, "leaveDelay": { "type": { "name": "number" }, "default": "0" }, "leaveTouchDelay": { "type": { "name": "number" }, "default": "1500" }, "onClose": { "type": { "name": "func" }, "signature": { "type": "function(event: React.SyntheticEvent) => void", "describedArgs": ["event"] } }, "onOpen": { "type": { "name": "func" }, "signature": { "type": "function(event: React.SyntheticEvent) => void", "describedArgs": ["event"] } }, "open": { "type": { "name": "bool" } }, "placement": { "type": { "name": "enum", "description": "'auto-end'
| 'auto-start'
| 'auto'
| 'bottom-end'
| 'bottom-start'
| 'bottom'
| 'left-end'
| 'left-start'
| 'left'
| 'right-end'
| 'right-start'
| 'right'
| 'top-end'
| 'top-start'
| 'top'" }, "default": "'bottom'" }, "PopperComponent": { "type": { "name": "elementType" }, "deprecated": true, "deprecationInfo": "use the slots.popper prop instead. This prop will be removed in a future major release. See Migrating from deprecated APIs for more details." }, "PopperProps": { "type": { "name": "object" }, "default": "{}", "deprecated": true, "deprecationInfo": "use the slotProps.popper prop instead. This prop will be removed in a future major release. See Migrating from deprecated APIs for more details." }, "slotProps": { "type": { "name": "shape", "description": "{ arrow?: func
| object, popper?: func
| object, tooltip?: func
| object, transition?: func
| object }" }, "default": "{}" }, "slots": { "type": { "name": "shape", "description": "{ arrow?: elementType, popper?: elementType, tooltip?: elementType, transition?: elementType }" }, "default": "{}" }, "sx": { "type": { "name": "union", "description": "Array<func
| object
| bool>
| func
| object" }, "additionalInfo": { "sx": true } }, "title": { "type": { "name": "node" } }, "TransitionComponent": { "type": { "name": "elementType" }, "deprecated": true, "deprecationInfo": "use the slots.transition prop instead. This prop will be removed in a future major release. See Migrating from deprecated APIs for more details." }, "TransitionProps": { "type": { "name": "object" }, "default": "{}", "deprecated": true, "deprecationInfo": "use the slotProps.transition prop instead. This prop will be removed in a future major release. See Migrating from deprecated APIs for more details." } }, "name": "Tooltip", "imports": [ "import Tooltip from '@mui/material/Tooltip';", "import { Tooltip } from '@mui/material';" ], "slots": [ { "name": "popper", "description": "The component used for the popper.", "default": "Popper", "class": "MuiTooltip-popper" }, { "name": "transition", "description": "The component used for the transition.\n[Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.", "default": "Grow", "class": null }, { "name": "tooltip", "description": "The component used for the tooltip.", "class": "MuiTooltip-tooltip" }, { "name": "arrow", "description": "The component used for the arrow.", "class": "MuiTooltip-arrow" } ], "classes": [ { "key": "popperArrow", "className": "MuiTooltip-popperArrow", "description": "Styles applied to the Popper component if `arrow={true}`.", "isGlobal": false }, { "key": "popperClose", "className": "MuiTooltip-popperClose", "description": "Styles applied to the Popper component unless the tooltip is open.", "isGlobal": false }, { "key": "popperInteractive", "className": "MuiTooltip-popperInteractive", "description": "Styles applied to the Popper component unless `disableInteractive={true}`.", "isGlobal": false }, { "key": "tooltipArrow", "className": "MuiTooltip-tooltipArrow", "description": "Styles applied to the tooltip (label wrapper) element if `arrow={true}`.", "isGlobal": false }, { "key": "tooltipPlacementBottom", "className": "MuiTooltip-tooltipPlacementBottom", "description": "Styles applied to the tooltip (label wrapper) element if `placement` contains \"bottom\".", "isGlobal": false }, { "key": "tooltipPlacementLeft", "className": "MuiTooltip-tooltipPlacementLeft", "description": "Styles applied to the tooltip (label wrapper) element if `placement` contains \"left\".", "isGlobal": false }, { "key": "tooltipPlacementRight", "className": "MuiTooltip-tooltipPlacementRight", "description": "Styles applied to the tooltip (label wrapper) element if `placement` contains \"right\".", "isGlobal": false }, { "key": "tooltipPlacementTop", "className": "MuiTooltip-tooltipPlacementTop", "description": "Styles applied to the tooltip (label wrapper) element if `placement` contains \"top\".", "isGlobal": false }, { "key": "touch", "className": "MuiTooltip-touch", "description": "Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch.", "isGlobal": false } ], "spread": true, "themeDefaultProps": true, "muiName": "MuiTooltip", "forwardsRefTo": "HTMLButtonElement", "filename": "/packages/mui-material/src/Tooltip/Tooltip.js", "inheritance": null, "demos": "", "cssComponent": false }