Skip to content

ListItem API

API reference docs for the React ListItem component. Learn about the props, CSS, and other APIs of this exported module.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

Import

import ListItem from '@mui/joy/ListItem';
// or
import { ListItem } from '@mui/joy';
Learn about the difference by reading this guide on minimizing bundle size.

Props

Props of the native component are also available.

children

color

component

endAction

nested

slotProps

slots

startAction

sticky

sx

variant

The ref is forwarded to the root element.

Theme default props

You can use JoyListItem to change the default props of this component with the theme.


Slots

To learn how to customize the slot, check out the Overriding component structure guide.

root

startAction

endAction

CSS classes

These class names are useful for styling with CSS. They are applied to the root slot when specific states are triggered.

.MuiListItem-colorContext

.MuiListItem-colorDanger

.MuiListItem-colorNeutral

.MuiListItem-colorPrimary

.MuiListItem-colorSuccess

.MuiListItem-colorWarning

.MuiListItem-nested

.MuiListItem-nesting

.MuiListItem-sticky

.MuiListItem-variantOutlined

.MuiListItem-variantPlain

.MuiListItem-variantSoft

.MuiListItem-variantSolid