125 lines
5.0 KiB
JSON
125 lines
5.0 KiB
JSON
|
|
{
|
||
|
|
"props": {
|
||
|
|
"alignItems": {
|
||
|
|
"type": { "name": "enum", "description": "'center'<br>| 'flex-start'" },
|
||
|
|
"default": "'center'"
|
||
|
|
},
|
||
|
|
"children": { "type": { "name": "custom", "description": "node" } },
|
||
|
|
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
|
||
|
|
"component": { "type": { "name": "elementType" } },
|
||
|
|
"components": {
|
||
|
|
"type": { "name": "shape", "description": "{ Root?: elementType }" },
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "Use the <code>slots</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"componentsProps": {
|
||
|
|
"type": { "name": "shape", "description": "{ root?: object }" },
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "Use the <code>slotProps</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"ContainerComponent": {
|
||
|
|
"type": { "name": "custom", "description": "element type" },
|
||
|
|
"default": "'li'",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "Use the <code>component</code> or <code>slots.root</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"ContainerProps": {
|
||
|
|
"type": { "name": "object" },
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "Use the <code>slotProps.root</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"dense": { "type": { "name": "bool" }, "default": "false" },
|
||
|
|
"disableGutters": { "type": { "name": "bool" }, "default": "false" },
|
||
|
|
"disablePadding": { "type": { "name": "bool" }, "default": "false" },
|
||
|
|
"divider": { "type": { "name": "bool" }, "default": "false" },
|
||
|
|
"secondaryAction": { "type": { "name": "node" } },
|
||
|
|
"slotProps": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ root?: object, secondaryAction?: func<br>| object }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"slots": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ root?: elementType, secondaryAction?: elementType }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"sx": {
|
||
|
|
"type": {
|
||
|
|
"name": "union",
|
||
|
|
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
|
||
|
|
},
|
||
|
|
"additionalInfo": { "sx": true }
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": "ListItem",
|
||
|
|
"imports": [
|
||
|
|
"import ListItem from '@mui/material/ListItem';",
|
||
|
|
"import { ListItem } from '@mui/material';"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
{
|
||
|
|
"key": "alignItemsFlexStart",
|
||
|
|
"className": "MuiListItem-alignItemsFlexStart",
|
||
|
|
"description": "Styles applied to the component element if `alignItems=\"flex-start\"`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "container",
|
||
|
|
"className": "MuiListItem-container",
|
||
|
|
"description": "Styles applied to the container element if `children` includes `ListItemSecondaryAction`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "dense",
|
||
|
|
"className": "MuiListItem-dense",
|
||
|
|
"description": "Styles applied to the component element if dense.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "divider",
|
||
|
|
"className": "MuiListItem-divider",
|
||
|
|
"description": "Styles applied to the inner `component` element if `divider={true}`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "gutters",
|
||
|
|
"className": "MuiListItem-gutters",
|
||
|
|
"description": "Styles applied to the inner `component` element unless `disableGutters={true}`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "padding",
|
||
|
|
"className": "MuiListItem-padding",
|
||
|
|
"description": "Styles applied to the root element unless `disablePadding={true}`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "root",
|
||
|
|
"className": "MuiListItem-root",
|
||
|
|
"description": "Styles applied to the (normally root) `component` element. May be wrapped by a `container`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "secondaryAction",
|
||
|
|
"className": "MuiListItem-secondaryAction",
|
||
|
|
"description": "Styles applied to the component element if `children` includes `ListItemSecondaryAction`.",
|
||
|
|
"isGlobal": false
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"spread": true,
|
||
|
|
"themeDefaultProps": true,
|
||
|
|
"muiName": "MuiListItem",
|
||
|
|
"forwardsRefTo": "HTMLLIElement",
|
||
|
|
"filename": "/packages/mui-material/src/ListItem/ListItem.js",
|
||
|
|
"inheritance": null,
|
||
|
|
"demos": "<ul><li><a href=\"/material-ui/react-list/\">Lists</a></li>\n<li><a href=\"/material-ui/react-transfer-list/\">Transfer List</a></li></ul>",
|
||
|
|
"cssComponent": false
|
||
|
|
}
|