Files
react-test/docs/pages/material-ui/api/avatar.json

104 lines
3.2 KiB
JSON
Raw Normal View History

2025-12-12 14:26:25 +09:00
{
"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>&#124;&nbsp;object, img?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;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&lt;func<br>&#124;&nbsp;object<br>&#124;&nbsp;bool&gt;<br>&#124;&nbsp;func<br>&#124;&nbsp;object"
},
"additionalInfo": { "sx": true }
},
"variant": {
"type": {
"name": "union",
"description": "'circular'<br>&#124;&nbsp;'rounded'<br>&#124;&nbsp;'square'<br>&#124;&nbsp;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
}