197 lines
8.3 KiB
JSON
197 lines
8.3 KiB
JSON
|
|
{
|
||
|
|
"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 <code>slots</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"componentsProps": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ arrow?: object, popper?: object, tooltip?: object, transition?: object }"
|
||
|
|
},
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "use the <code>slotProps</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> 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'<br>| 'auto-start'<br>| 'auto'<br>| 'bottom-end'<br>| 'bottom-start'<br>| 'bottom'<br>| 'left-end'<br>| 'left-start'<br>| 'left'<br>| 'right-end'<br>| 'right-start'<br>| 'right'<br>| 'top-end'<br>| 'top-start'<br>| 'top'"
|
||
|
|
},
|
||
|
|
"default": "'bottom'"
|
||
|
|
},
|
||
|
|
"PopperComponent": {
|
||
|
|
"type": { "name": "elementType" },
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "use the <code>slots.popper</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"PopperProps": {
|
||
|
|
"type": { "name": "object" },
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "use the <code>slotProps.popper</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"slotProps": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ arrow?: func<br>| object, popper?: func<br>| object, tooltip?: func<br>| object, transition?: func<br>| object }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"slots": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ arrow?: elementType, popper?: elementType, tooltip?: elementType, transition?: elementType }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"sx": {
|
||
|
|
"type": {
|
||
|
|
"name": "union",
|
||
|
|
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
|
||
|
|
},
|
||
|
|
"additionalInfo": { "sx": true }
|
||
|
|
},
|
||
|
|
"title": { "type": { "name": "node" } },
|
||
|
|
"TransitionComponent": {
|
||
|
|
"type": { "name": "elementType" },
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "use the <code>slots.transition</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"TransitionProps": {
|
||
|
|
"type": { "name": "object" },
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "use the <code>slotProps.transition</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> 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": "<ul><li><a href=\"/material-ui/react-tooltip/\">Tooltip</a></li></ul>",
|
||
|
|
"cssComponent": false
|
||
|
|
}
|