Files
react-test/docs/data/material/components/alert/DescriptionAlerts.js
how2ice 005cf56baf
Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
init project
2025-12-12 14:26:25 +09:00

27 lines
826 B
JavaScript

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>
);
}