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
252 lines
8.0 KiB
JSON
252 lines
8.0 KiB
JSON
{
|
|
"props": {
|
|
"children": { "type": { "name": "node" } },
|
|
"color": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'danger'<br>| 'neutral'<br>| 'primary'<br>| 'success'<br>| 'warning'<br>| 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>| 'body2'<br>| 'body3'<br>| 'h1'<br>| 'h2'<br>| 'h3'<br>| 'h4'<br>| 'h5'<br>| 'h6'<br>| 'inherit'<br>| string"
|
|
},
|
|
"default": "'body-md'"
|
|
},
|
|
"overlay": { "type": { "name": "bool" }, "default": "false" },
|
|
"slotProps": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ endDecorator?: func<br>| object, root?: func<br>| object, startDecorator?: func<br>| 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<func<br>| object<br>| bool><br>| func<br>| object"
|
|
},
|
|
"additionalInfo": { "sx": true }
|
|
},
|
|
"textColor": { "type": { "name": "any" } },
|
|
"underline": {
|
|
"type": {
|
|
"name": "enum",
|
|
"description": "'always'<br>| 'hover'<br>| 'none'"
|
|
},
|
|
"default": "'hover'"
|
|
},
|
|
"variant": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'outlined'<br>| 'plain'<br>| 'soft'<br>| 'solid'<br>| 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
|
|
}
|