Files
react-test/docs/pages/joy-ui/api/link.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

252 lines
8.0 KiB
JSON

{
"props": {
"children": { "type": { "name": "node" } },
"color": {
"type": {
"name": "union",
"description": "'danger'<br>&#124;&nbsp;'neutral'<br>&#124;&nbsp;'primary'<br>&#124;&nbsp;'success'<br>&#124;&nbsp;'warning'<br>&#124;&nbsp;string"
},
"default": "'primary'",
"additionalInfo": { "joy-color": true }
},
"component": { "type": { "name": "elementType" } },
"disabled": { "type": { "name": "bool" }, "default": "false" },
"endDecorator": { "type": { "name": "node" } },
"level": {
"type": {
"name": "union",
"description": "'body1'<br>&#124;&nbsp;'body2'<br>&#124;&nbsp;'body3'<br>&#124;&nbsp;'h1'<br>&#124;&nbsp;'h2'<br>&#124;&nbsp;'h3'<br>&#124;&nbsp;'h4'<br>&#124;&nbsp;'h5'<br>&#124;&nbsp;'h6'<br>&#124;&nbsp;'inherit'<br>&#124;&nbsp;string"
},
"default": "'body-md'"
},
"overlay": { "type": { "name": "bool" }, "default": "false" },
"slotProps": {
"type": {
"name": "shape",
"description": "{ endDecorator?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object, startDecorator?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ endDecorator?: elementType, root?: elementType, startDecorator?: elementType }"
},
"default": "{}",
"additionalInfo": { "slotsApi": true }
},
"startDecorator": { "type": { "name": "node" } },
"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 }
},
"textColor": { "type": { "name": "any" } },
"underline": {
"type": {
"name": "enum",
"description": "'always'<br>&#124;&nbsp;'hover'<br>&#124;&nbsp;'none'"
},
"default": "'hover'"
},
"variant": {
"type": {
"name": "union",
"description": "'outlined'<br>&#124;&nbsp;'plain'<br>&#124;&nbsp;'soft'<br>&#124;&nbsp;'solid'<br>&#124;&nbsp;string"
},
"default": "'plain'",
"additionalInfo": { "joy-variant": true }
}
},
"name": "Link",
"imports": ["import Link from '@mui/joy/Link';", "import { Link } from '@mui/joy';"],
"slots": [
{
"name": "root",
"description": "The component that renders the root.",
"default": "'a'",
"class": "MuiLink-root"
},
{
"name": "startDecorator",
"description": "The component that renders the start decorator.",
"default": "'span'",
"class": "MuiLink-startDecorator"
},
{
"name": "endDecorator",
"description": "The component that renders the end decorator.",
"default": "'span'",
"class": "MuiLink-endDecorator"
}
],
"classes": [
{
"key": "body-lg",
"className": "MuiLink-body-lg",
"description": "Class name applied to the root element if `level=\"body-lg\"`.",
"isGlobal": false
},
{
"key": "body-md",
"className": "MuiLink-body-md",
"description": "Class name applied to the root element if `level=\"body-md\"`.",
"isGlobal": false
},
{
"key": "body-sm",
"className": "MuiLink-body-sm",
"description": "Class name applied to the root element if `level=\"body-sm\"`.",
"isGlobal": false
},
{
"key": "body-xs",
"className": "MuiLink-body-xs",
"description": "Class name applied to the root element if `level=\"body-xs\"`.",
"isGlobal": false
},
{
"key": "colorContext",
"className": "MuiLink-colorContext",
"description": "Class name applied to the root element when color inversion is triggered.",
"isGlobal": false
},
{
"key": "colorDanger",
"className": "MuiLink-colorDanger",
"description": "Class name applied to the root element if `color=\"danger\"`.",
"isGlobal": false
},
{
"key": "colorNeutral",
"className": "MuiLink-colorNeutral",
"description": "Class name applied to the root element if `color=\"neutral\"`.",
"isGlobal": false
},
{
"key": "colorPrimary",
"className": "MuiLink-colorPrimary",
"description": "Class name applied to the root element if `color=\"primary\"`.",
"isGlobal": false
},
{
"key": "colorSuccess",
"className": "MuiLink-colorSuccess",
"description": "Class name applied to the root element if `color=\"success\"`.",
"isGlobal": false
},
{
"key": "colorWarning",
"className": "MuiLink-colorWarning",
"description": "Class name applied to the root element if `color=\"warning\"`.",
"isGlobal": false
},
{
"key": "disabled",
"className": "Mui-disabled",
"description": "State class applied to the root element if `disabled={true}`.",
"isGlobal": true
},
{
"key": "focusVisible",
"className": "Mui-focusVisible",
"description": "State class applied to the root element if the link is keyboard focused.",
"isGlobal": true
},
{
"key": "h1",
"className": "MuiLink-h1",
"description": "Class name applied to the root element if `level=\"h1\"`.",
"isGlobal": false
},
{
"key": "h2",
"className": "MuiLink-h2",
"description": "Class name applied to the root element if `level=\"h2\"`.",
"isGlobal": false
},
{
"key": "h3",
"className": "MuiLink-h3",
"description": "Class name applied to the root element if `level=\"h3\"`.",
"isGlobal": false
},
{
"key": "h4",
"className": "MuiLink-h4",
"description": "Class name applied to the root element if `level=\"h4\"`.",
"isGlobal": false
},
{
"key": "title-lg",
"className": "MuiLink-title-lg",
"description": "Class name applied to the root element if `level=\"title-lg\"`.",
"isGlobal": false
},
{
"key": "title-md",
"className": "MuiLink-title-md",
"description": "Class name applied to the root element if `level=\"title-md\"`.",
"isGlobal": false
},
{
"key": "title-sm",
"className": "MuiLink-title-sm",
"description": "Class name applied to the root element if `level=\"title-sm\"`.",
"isGlobal": false
},
{
"key": "underlineAlways",
"className": "MuiLink-underlineAlways",
"description": "Class name applied to the root element if `underline=\"always\"`.",
"isGlobal": false
},
{
"key": "underlineHover",
"className": "MuiLink-underlineHover",
"description": "Class name applied to the root element if `underline=\"hover\"`.",
"isGlobal": false
},
{
"key": "underlineNone",
"className": "MuiLink-underlineNone",
"description": "Class name applied to the root element if `underline=\"none\"`.",
"isGlobal": false
},
{
"key": "variantOutlined",
"className": "MuiLink-variantOutlined",
"description": "Class name applied to the root element if `variant=\"outlined\"`.",
"isGlobal": false
},
{
"key": "variantPlain",
"className": "MuiLink-variantPlain",
"description": "Class name applied to the root element if `variant=\"plain\"`.",
"isGlobal": false
},
{
"key": "variantSoft",
"className": "MuiLink-variantSoft",
"description": "Class name applied to the root element if `variant=\"soft\"`.",
"isGlobal": false
},
{
"key": "variantSolid",
"className": "MuiLink-variantSolid",
"description": "Class name applied to the root element if `variant=\"solid\"`.",
"isGlobal": false
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyLink",
"forwardsRefTo": "HTMLAnchorElement",
"filename": "/packages/mui-joy/src/Link/Link.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-link/\">Link</a></li></ul>",
"cssComponent": false
}