Files
react-test/test/regressions/fixtures/Alert/HorizontalOverflow.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
525 B
JavaScript
Raw Permalink Normal View History

2025-12-12 14:26:25 +09:00
import * as React from 'react';
import Button from '@mui/material/Button';
import Typography from '@mui/material/Typography';
import Alert from '@mui/material/Alert';
import { Box } from '@mui/material';
export default function MultilineAlertWithAction() {
return (
<Box sx={{ width: 500 }}>
<Alert
action={
<Button color="inherit" size="small">
UNDO
</Button>
}
>
<Typography as="div">{'a'.repeat(500)}</Typography>
</Alert>
</Box>
);
}