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
145 lines
4.9 KiB
JSON
145 lines
4.9 KiB
JSON
{
|
|
"props": {
|
|
"children": { "type": { "name": "node" } },
|
|
"color": {
|
|
"type": {
|
|
"name": "enum",
|
|
"description": "'danger'<br>| 'neutral'<br>| 'primary'<br>| 'success'<br>| 'warning'"
|
|
},
|
|
"default": "'neutral'",
|
|
"additionalInfo": { "joy-color": true }
|
|
},
|
|
"component": { "type": { "name": "elementType" } },
|
|
"flex": { "type": { "name": "bool" }, "default": "false" },
|
|
"maxHeight": { "type": { "name": "union", "description": "number<br>| string" } },
|
|
"minHeight": { "type": { "name": "union", "description": "number<br>| string" } },
|
|
"objectFit": {
|
|
"type": {
|
|
"name": "enum",
|
|
"description": "'-moz-initial'<br>| 'contain'<br>| 'cover'<br>| 'fill'<br>| 'inherit'<br>| 'initial'<br>| 'none'<br>| 'revert-layer'<br>| 'revert'<br>| 'scale-down'<br>| 'unset'"
|
|
},
|
|
"default": "'cover'"
|
|
},
|
|
"ratio": {
|
|
"type": { "name": "union", "description": "number<br>| string" },
|
|
"default": "'16 / 9'"
|
|
},
|
|
"slotProps": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ content?: func<br>| object, root?: func<br>| object }"
|
|
},
|
|
"default": "{}"
|
|
},
|
|
"slots": {
|
|
"type": { "name": "shape", "description": "{ content?: elementType, root?: elementType }" },
|
|
"default": "{}",
|
|
"additionalInfo": { "slotsApi": true }
|
|
},
|
|
"sx": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
|
|
},
|
|
"additionalInfo": { "sx": true }
|
|
},
|
|
"variant": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'outlined'<br>| 'plain'<br>| 'soft'<br>| 'solid'<br>| string"
|
|
},
|
|
"default": "'soft'",
|
|
"additionalInfo": { "joy-variant": true }
|
|
}
|
|
},
|
|
"name": "AspectRatio",
|
|
"imports": [
|
|
"import AspectRatio from '@mui/joy/AspectRatio';",
|
|
"import { AspectRatio } from '@mui/joy';"
|
|
],
|
|
"slots": [
|
|
{
|
|
"name": "root",
|
|
"description": "The component that renders the root.",
|
|
"default": "'div'",
|
|
"class": "MuiAspectRatio-root"
|
|
},
|
|
{
|
|
"name": "content",
|
|
"description": "The component that renders the content.",
|
|
"default": "'div'",
|
|
"class": "MuiAspectRatio-content"
|
|
}
|
|
],
|
|
"classes": [
|
|
{
|
|
"key": "colorContext",
|
|
"className": "MuiAspectRatio-colorContext",
|
|
"description": "Class name applied to the root element when color inversion is triggered.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorDanger",
|
|
"className": "MuiAspectRatio-colorDanger",
|
|
"description": "Class name applied to the content element if `color=\"danger\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorNeutral",
|
|
"className": "MuiAspectRatio-colorNeutral",
|
|
"description": "Class name applied to the content element if `color=\"neutral\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorPrimary",
|
|
"className": "MuiAspectRatio-colorPrimary",
|
|
"description": "Class name applied to the content element if `color=\"primary\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorSuccess",
|
|
"className": "MuiAspectRatio-colorSuccess",
|
|
"description": "Class name applied to the content element if `color=\"success\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorWarning",
|
|
"className": "MuiAspectRatio-colorWarning",
|
|
"description": "Class name applied to the content element if `color=\"warning\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantOutlined",
|
|
"className": "MuiAspectRatio-variantOutlined",
|
|
"description": "Class name applied to the content element if `variant=\"outlined\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantPlain",
|
|
"className": "MuiAspectRatio-variantPlain",
|
|
"description": "Class name applied to the content element if `variant=\"plain\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantSoft",
|
|
"className": "MuiAspectRatio-variantSoft",
|
|
"description": "Class name applied to the content element if `variant=\"soft\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantSolid",
|
|
"className": "MuiAspectRatio-variantSolid",
|
|
"description": "Class name applied to the content element if `variant=\"solid\"`.",
|
|
"isGlobal": false
|
|
}
|
|
],
|
|
"spread": true,
|
|
"themeDefaultProps": true,
|
|
"muiName": "JoyAspectRatio",
|
|
"forwardsRefTo": "HTMLDivElement",
|
|
"filename": "/packages/mui-joy/src/AspectRatio/AspectRatio.tsx",
|
|
"inheritance": null,
|
|
"demos": "<ul><li><a href=\"/joy-ui/react-aspect-ratio/\">Aspect Ratio</a></li>\n<li><a href=\"/joy-ui/react-skeleton/\">Skeleton</a></li></ul>",
|
|
"cssComponent": false
|
|
}
|