import * as React from 'react'; import { styled } from '@mui/material/styles'; import Box from '@mui/material/Box'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemAvatar from '@mui/material/ListItemAvatar'; import ListItemIcon from '@mui/material/ListItemIcon'; import ListItemText from '@mui/material/ListItemText'; import Avatar from '@mui/material/Avatar'; import IconButton from '@mui/material/IconButton'; import FormGroup from '@mui/material/FormGroup'; import FormControlLabel from '@mui/material/FormControlLabel'; import Checkbox from '@mui/material/Checkbox'; import Grid from '@mui/material/Grid'; import Typography from '@mui/material/Typography'; import FolderIcon from '@mui/icons-material/Folder'; import DeleteIcon from '@mui/icons-material/Delete'; function generate(element: React.ReactElement) { return [0, 1, 2].map((value) => React.cloneElement(element, { key: value, }), ); } const Demo = styled('div')(({ theme }) => ({ backgroundColor: (theme.vars || theme).palette.background.paper, })); export default function InteractiveList() { const [dense, setDense] = React.useState(false); const [secondary, setSecondary] = React.useState(false); return ( setDense(event.target.checked)} /> } label="Enable dense" /> setSecondary(event.target.checked)} /> } label="Enable secondary text" /> Text only {generate( , )} Icon with text {generate( , )} Avatar with text {generate( , )} Avatar with text and icon {generate( } > , )} ); }