Material UI – Styling text inside ListItemText

I beleive the only way to achieve this right now is to use the ‘disableTypography’ prop of the ListItemText element.

 <ListItemText
        disableTypography
        primary={<Typography variant="body2" style={{ color: '#FFFFFF' }}>MyTitle</Typography>}
      />

This lets you embed your own text element with whatever styling you want on it.

Leave a Comment

tech