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
159 lines
5.1 KiB
JSON
159 lines
5.1 KiB
JSON
{
|
|
"props": {
|
|
"children": { "type": { "name": "node" } },
|
|
"color": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'danger'<br>| 'neutral'<br>| 'primary'<br>| 'success'<br>| 'warning'<br>| string"
|
|
},
|
|
"default": "'neutral'",
|
|
"additionalInfo": { "joy-color": true }
|
|
},
|
|
"component": { "type": { "name": "elementType" } },
|
|
"endAction": { "type": { "name": "node" } },
|
|
"nested": { "type": { "name": "bool" }, "default": "false" },
|
|
"slotProps": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ endAction?: func<br>| object, root?: func<br>| object, startAction?: func<br>| object }"
|
|
},
|
|
"default": "{}"
|
|
},
|
|
"slots": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ endAction?: elementType, root?: elementType, startAction?: elementType }"
|
|
},
|
|
"default": "{}",
|
|
"additionalInfo": { "slotsApi": true }
|
|
},
|
|
"startAction": { "type": { "name": "node" } },
|
|
"sticky": { "type": { "name": "bool" }, "default": "false" },
|
|
"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": "'plain'",
|
|
"additionalInfo": { "joy-variant": true }
|
|
}
|
|
},
|
|
"name": "ListItem",
|
|
"imports": ["import ListItem from '@mui/joy/ListItem';", "import { ListItem } from '@mui/joy';"],
|
|
"slots": [
|
|
{
|
|
"name": "root",
|
|
"description": "The component that renders the root.",
|
|
"default": "'li'",
|
|
"class": "MuiListItem-root"
|
|
},
|
|
{
|
|
"name": "startAction",
|
|
"description": "The component that renders the start action.",
|
|
"default": "'div'",
|
|
"class": "MuiListItem-startAction"
|
|
},
|
|
{
|
|
"name": "endAction",
|
|
"description": "The component that renders the end action.",
|
|
"default": "'div'",
|
|
"class": "MuiListItem-endAction"
|
|
}
|
|
],
|
|
"classes": [
|
|
{
|
|
"key": "colorContext",
|
|
"className": "MuiListItem-colorContext",
|
|
"description": "Class name applied to the root element when color inversion is triggered.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorDanger",
|
|
"className": "MuiListItem-colorDanger",
|
|
"description": "Class name applied to the root element if `color=\"danger\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorNeutral",
|
|
"className": "MuiListItem-colorNeutral",
|
|
"description": "Class name applied to the root element if `color=\"neutral\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorPrimary",
|
|
"className": "MuiListItem-colorPrimary",
|
|
"description": "Class name applied to the root element if `color=\"primary\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorSuccess",
|
|
"className": "MuiListItem-colorSuccess",
|
|
"description": "Class name applied to the root element if `color=\"success\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorWarning",
|
|
"className": "MuiListItem-colorWarning",
|
|
"description": "Class name applied to the root element if `color=\"warning\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "nested",
|
|
"className": "MuiListItem-nested",
|
|
"description": "Class name applied to the root element, if nested={true}.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "nesting",
|
|
"className": "MuiListItem-nesting",
|
|
"description": "Class name applied to the root element, if it is under a nested list item.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "sticky",
|
|
"className": "MuiListItem-sticky",
|
|
"description": "Class name applied to the root element, if sticky={true}.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantOutlined",
|
|
"className": "MuiListItem-variantOutlined",
|
|
"description": "State class applied to the root element if `variant=\"outlined\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantPlain",
|
|
"className": "MuiListItem-variantPlain",
|
|
"description": "State class applied to the root element if `variant=\"plain\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantSoft",
|
|
"className": "MuiListItem-variantSoft",
|
|
"description": "State class applied to the root element if `variant=\"soft\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantSolid",
|
|
"className": "MuiListItem-variantSolid",
|
|
"description": "State class applied to the root element if `variant=\"solid\"`.",
|
|
"isGlobal": false
|
|
}
|
|
],
|
|
"spread": true,
|
|
"themeDefaultProps": true,
|
|
"muiName": "JoyListItem",
|
|
"forwardsRefTo": "HTMLLIElement",
|
|
"filename": "/packages/mui-joy/src/ListItem/ListItem.tsx",
|
|
"inheritance": null,
|
|
"demos": "<ul><li><a href=\"/joy-ui/react-list/\">Lists</a></li></ul>",
|
|
"cssComponent": false
|
|
}
|