Files
react-test/docs/data/material/components/alert/DescriptionAlerts.tsx

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

27 lines
826 B
TypeScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import Alert from '@mui/material/Alert';
import AlertTitle from '@mui/material/AlertTitle';
import Stack from '@mui/material/Stack';
export default function DescriptionAlerts() {
return (
<Stack sx={{ width: '100%' }} spacing={2}>
<Alert severity="success">
<AlertTitle>Success</AlertTitle>
This is a success Alert with an encouraging title.
</Alert>
<Alert severity="info">
<AlertTitle>Info</AlertTitle>
This is an info Alert with an informative title.
</Alert>
<Alert severity="warning">
<AlertTitle>Warning</AlertTitle>
This is a warning Alert with a cautious title.
</Alert>
<Alert severity="error">
<AlertTitle>Error</AlertTitle>
This is an error Alert with a scary title.
</Alert>
</Stack>
);
}