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

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

20 lines
500 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';
export default function MultilineAlertWithAction() {
return (
<Alert
action={
<Button color="inherit" size="small">
UNDO
</Button>
}
>
<Typography as="div">This is the first line.</Typography>
<Typography as="div">This is the second line.</Typography>
</Alert>
);
}