import React from 'react'; import Paper from '@material-ui/core/Paper'; import { makeStyles, createStyles, Theme } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Avatar from '@material-ui/core/Avatar'; import Typography from '@material-ui/core/Typography'; const useStyles = makeStyles((theme: Theme) => createStyles({ root: { flexGrow: 1, overflow: 'hidden', padding: theme.spacing(0, 3), }, paper: { maxWidth: 400, margin: `${theme.spacing(1)}px auto`, padding: theme.spacing(2), }, }), ); 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() { const classes = useStyles(); return (
W {message} W {message} W {message}
); }