Files
react-test/docs/pages/joy-ui/api/tooltip.json
how2ice 005cf56baf
Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
init project
2025-12-12 14:26:25 +09:00

235 lines
8.4 KiB
JSON

{
"props": {
"children": { "type": { "name": "element" }, "required": true },
"arrow": { "type": { "name": "bool" }, "default": "false" },
"color": {
"type": {
"name": "enum",
"description": "'danger'<br>&#124;&nbsp;'neutral'<br>&#124;&nbsp;'primary'<br>&#124;&nbsp;'success'<br>&#124;&nbsp;'warning'"
},
"default": "'neutral'",
"additionalInfo": { "joy-color": true }
},
"component": { "type": { "name": "elementType" } },
"describeChild": { "type": { "name": "bool" }, "default": "false" },
"direction": {
"type": { "name": "enum", "description": "'ltr'<br>&#124;&nbsp;'rtl'" },
"default": "'ltr'"
},
"disableFocusListener": { "type": { "name": "bool" }, "default": "false" },
"disableHoverListener": { "type": { "name": "bool" }, "default": "false" },
"disableInteractive": { "type": { "name": "bool" }, "default": "false" },
"disablePortal": { "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" } },
"keepMounted": { "type": { "name": "bool" }, "default": "false" },
"leaveDelay": { "type": { "name": "number" }, "default": "0" },
"leaveTouchDelay": { "type": { "name": "number" }, "default": "1500" },
"modifiers": {
"type": {
"name": "arrayOf",
"description": "Array&lt;{ data?: object, effect?: func, enabled?: bool, fn?: func, name?: any, options?: object, phase?: 'afterMain'<br>&#124;&nbsp;'afterRead'<br>&#124;&nbsp;'afterWrite'<br>&#124;&nbsp;'beforeMain'<br>&#124;&nbsp;'beforeRead'<br>&#124;&nbsp;'beforeWrite'<br>&#124;&nbsp;'main'<br>&#124;&nbsp;'read'<br>&#124;&nbsp;'write', requires?: Array&lt;string&gt;, requiresIfExists?: Array&lt;string&gt; }&gt;"
}
},
"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": "'bottom-end'<br>&#124;&nbsp;'bottom-start'<br>&#124;&nbsp;'bottom'<br>&#124;&nbsp;'left-end'<br>&#124;&nbsp;'left-start'<br>&#124;&nbsp;'left'<br>&#124;&nbsp;'right-end'<br>&#124;&nbsp;'right-start'<br>&#124;&nbsp;'right'<br>&#124;&nbsp;'top-end'<br>&#124;&nbsp;'top-start'<br>&#124;&nbsp;'top'"
},
"default": "'bottom'"
},
"size": {
"type": { "name": "enum", "description": "'sm'<br>&#124;&nbsp;'md'<br>&#124;&nbsp;'lg'" },
"default": "'md'",
"additionalInfo": { "joy-size": true }
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ arrow?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ arrow?: elementType, root?: elementType }" },
"default": "{}",
"additionalInfo": { "slotsApi": true }
},
"sx": {
"type": {
"name": "union",
"description": "Array&lt;func<br>&#124;&nbsp;object<br>&#124;&nbsp;bool&gt;<br>&#124;&nbsp;func<br>&#124;&nbsp;object"
},
"additionalInfo": { "sx": true }
},
"title": { "type": { "name": "node" } },
"variant": {
"type": {
"name": "enum",
"description": "'outlined'<br>&#124;&nbsp;'plain'<br>&#124;&nbsp;'soft'<br>&#124;&nbsp;'solid'"
},
"default": "'solid'",
"additionalInfo": { "joy-variant": true }
}
},
"name": "Tooltip",
"imports": ["import Tooltip from '@mui/joy/Tooltip';", "import { Tooltip } from '@mui/joy';"],
"slots": [
{
"name": "root",
"description": "The component that renders the root.",
"default": "'div'",
"class": "MuiTooltip-root"
},
{
"name": "arrow",
"description": "The component that renders the arrow.",
"default": "'span'",
"class": "MuiTooltip-arrow"
}
],
"classes": [
{
"key": "colorContext",
"className": "MuiTooltip-colorContext",
"description": "Class name applied to the root element when color inversion is triggered.",
"isGlobal": false
},
{
"key": "colorDanger",
"className": "MuiTooltip-colorDanger",
"description": "Class name applied to the root element if `color=\"danger\"`.",
"isGlobal": false
},
{
"key": "colorNeutral",
"className": "MuiTooltip-colorNeutral",
"description": "Class name applied to the root element if `color=\"neutral\"`.",
"isGlobal": false
},
{
"key": "colorPrimary",
"className": "MuiTooltip-colorPrimary",
"description": "Class name applied to the root element if `color=\"primary\"`.",
"isGlobal": false
},
{
"key": "colorSuccess",
"className": "MuiTooltip-colorSuccess",
"description": "Class name applied to the root element if `color=\"success\"`.",
"isGlobal": false
},
{
"key": "colorWarning",
"className": "MuiTooltip-colorWarning",
"description": "Class name applied to the root element if `color=\"warning\"`.",
"isGlobal": false
},
{
"key": "placementBottom",
"className": "MuiTooltip-placementBottom",
"description": "Class name applied to the root element if `placement` contains \"bottom\".",
"isGlobal": false
},
{
"key": "placementLeft",
"className": "MuiTooltip-placementLeft",
"description": "Class name applied to the root element if `placement` contains \"left\".",
"isGlobal": false
},
{
"key": "placementRight",
"className": "MuiTooltip-placementRight",
"description": "Class name applied to the root element if `placement` contains \"right\".",
"isGlobal": false
},
{
"key": "placementTop",
"className": "MuiTooltip-placementTop",
"description": "Class name applied to the root element if `placement` contains \"top\".",
"isGlobal": false
},
{
"key": "sizeLg",
"className": "MuiTooltip-sizeLg",
"description": "Class name applied to the root element if `size=\"lg\"`.",
"isGlobal": false
},
{
"key": "sizeMd",
"className": "MuiTooltip-sizeMd",
"description": "Class name applied to the root element if `size=\"md\"`.",
"isGlobal": false
},
{
"key": "sizeSm",
"className": "MuiTooltip-sizeSm",
"description": "Class name applied to the root element if `size=\"sm\"`.",
"isGlobal": false
},
{
"key": "tooltipArrow",
"className": "MuiTooltip-tooltipArrow",
"description": "Class name applied to the root element if `arrow={true}`.",
"isGlobal": false
},
{
"key": "touch",
"className": "MuiTooltip-touch",
"description": "Class name applied to the root element if the tooltip is opened by touch.",
"isGlobal": false
},
{
"key": "variantOutlined",
"className": "MuiTooltip-variantOutlined",
"description": "Class name applied to the root element if `variant=\"outlined\"`.",
"isGlobal": false
},
{
"key": "variantPlain",
"className": "MuiTooltip-variantPlain",
"description": "Class name applied to the root element if `variant=\"plain\"`.",
"isGlobal": false
},
{
"key": "variantSoft",
"className": "MuiTooltip-variantSoft",
"description": "Class name applied to the root element if `variant=\"soft\"`.",
"isGlobal": false
},
{
"key": "variantSolid",
"className": "MuiTooltip-variantSolid",
"description": "Class name applied to the root element if `variant=\"solid\"`.",
"isGlobal": false
}
],
"spread": false,
"themeDefaultProps": true,
"muiName": "JoyTooltip",
"forwardsRefTo": "HTMLButtonElement",
"filename": "/packages/mui-joy/src/Tooltip/Tooltip.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-tooltip/\">Tooltip</a></li></ul>",
"cssComponent": false
}