104 lines
3.2 KiB
JSON
104 lines
3.2 KiB
JSON
|
|
{
|
||
|
|
"props": {
|
||
|
|
"alt": { "type": { "name": "string" } },
|
||
|
|
"children": { "type": { "name": "node" } },
|
||
|
|
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
|
||
|
|
"component": { "type": { "name": "elementType" } },
|
||
|
|
"imgProps": {
|
||
|
|
"type": { "name": "object" },
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "Use <code>slotProps.img</code> instead. This prop will be removed in a future major release. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"sizes": { "type": { "name": "string" } },
|
||
|
|
"slotProps": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ fallback?: func<br>| object, img?: func<br>| object, root?: func<br>| object }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"slots": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ fallback?: elementType, img?: elementType, root?: elementType }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"src": { "type": { "name": "string" } },
|
||
|
|
"srcSet": { "type": { "name": "string" } },
|
||
|
|
"sx": {
|
||
|
|
"type": {
|
||
|
|
"name": "union",
|
||
|
|
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
|
||
|
|
},
|
||
|
|
"additionalInfo": { "sx": true }
|
||
|
|
},
|
||
|
|
"variant": {
|
||
|
|
"type": {
|
||
|
|
"name": "union",
|
||
|
|
"description": "'circular'<br>| 'rounded'<br>| 'square'<br>| string"
|
||
|
|
},
|
||
|
|
"default": "'circular'"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": "Avatar",
|
||
|
|
"imports": [
|
||
|
|
"import Avatar from '@mui/material/Avatar';",
|
||
|
|
"import { Avatar } from '@mui/material';"
|
||
|
|
],
|
||
|
|
"slots": [
|
||
|
|
{
|
||
|
|
"name": "root",
|
||
|
|
"description": "The component that renders the root slot.",
|
||
|
|
"default": "'div'",
|
||
|
|
"class": "MuiAvatar-root"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "img",
|
||
|
|
"description": "The component that renders the img slot.",
|
||
|
|
"default": "'img'",
|
||
|
|
"class": "MuiAvatar-img"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "fallback",
|
||
|
|
"description": "The component that renders the fallback slot.",
|
||
|
|
"default": "Person icon",
|
||
|
|
"class": "MuiAvatar-fallback"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
{
|
||
|
|
"key": "circular",
|
||
|
|
"className": "MuiAvatar-circular",
|
||
|
|
"description": "Styles applied to the root element if `variant=\"circular\"`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "colorDefault",
|
||
|
|
"className": "MuiAvatar-colorDefault",
|
||
|
|
"description": "Styles applied to the root element if not `src` or `srcSet`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "rounded",
|
||
|
|
"className": "MuiAvatar-rounded",
|
||
|
|
"description": "Styles applied to the root element if `variant=\"rounded\"`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "square",
|
||
|
|
"className": "MuiAvatar-square",
|
||
|
|
"description": "Styles applied to the root element if `variant=\"square\"`.",
|
||
|
|
"isGlobal": false
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"spread": true,
|
||
|
|
"themeDefaultProps": true,
|
||
|
|
"muiName": "MuiAvatar",
|
||
|
|
"forwardsRefTo": "HTMLDivElement",
|
||
|
|
"filename": "/packages/mui-material/src/Avatar/Avatar.js",
|
||
|
|
"inheritance": null,
|
||
|
|
"demos": "<ul><li><a href=\"/material-ui/react-avatar/\">Avatar</a></li></ul>",
|
||
|
|
"cssComponent": false
|
||
|
|
}
|