Files
react-test/docs/pages/joy-ui/api/list-item.json
how2ice 005cf56baf
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
init project
2025-12-12 14:26:25 +09:00

159 lines
5.1 KiB
JSON

{
"props": {
"children": { "type": { "name": "node" } },
"color": {
"type": {
"name": "union",
"description": "'danger'<br>&#124;&nbsp;'neutral'<br>&#124;&nbsp;'primary'<br>&#124;&nbsp;'success'<br>&#124;&nbsp;'warning'<br>&#124;&nbsp;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>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object, startAction?: func<br>&#124;&nbsp;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&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": "'outlined'<br>&#124;&nbsp;'plain'<br>&#124;&nbsp;'soft'<br>&#124;&nbsp;'solid'<br>&#124;&nbsp;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
}