{ "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 slotProps.img instead. This prop will be removed in a future major release. See Migrating from deprecated APIs for more details." }, "sizes": { "type": { "name": "string" } }, "slotProps": { "type": { "name": "shape", "description": "{ fallback?: func
| object, img?: func
| object, root?: func
| 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
| object
| bool>
| func
| object" }, "additionalInfo": { "sx": true } }, "variant": { "type": { "name": "union", "description": "'circular'
| 'rounded'
| 'square'
| 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": "", "cssComponent": false }