import { styled } from '@mui/material/styles'; import Box from '@mui/material/Box'; import Paper from '@mui/material/Paper'; import Grid from '@mui/material/GridLegacy'; import Avatar from '@mui/material/Avatar'; import Typography from '@mui/material/Typography'; const StyledPaper = styled(Paper)(({ theme }) => ({ backgroundColor: '#fff', ...theme.typography.body2, padding: theme.spacing(2), maxWidth: 400, color: (theme.vars ?? theme).palette.text.primary, ...theme.applyStyles('dark', { backgroundColor: '#1A2027', }), })); const message = `Truncation should be conditionally applicable on this long line of text as this is a much longer line than what the container can support. `; export default function AutoGridNoWrap() { return ( W {message} W {message} W {message} ); }