49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
import * as React from "react";
|
|
import Card from "@mui/material/Card";
|
|
import { Typography } from "@mui/material";
|
|
import Alert from "@mui/material/Alert";
|
|
import Stack from "@mui/material/Stack";
|
|
|
|
const BasicAlerts = () => {
|
|
return (
|
|
<>
|
|
<Card
|
|
sx={{
|
|
boxShadow: "none",
|
|
borderRadius: "10px",
|
|
p: "25px",
|
|
mb: "15px",
|
|
}}
|
|
className="card-dark-bg"
|
|
>
|
|
<Typography
|
|
as="h3"
|
|
sx={{
|
|
fontSize: 18,
|
|
fontWeight: 500,
|
|
mb: '10px'
|
|
}}
|
|
>
|
|
Basic Alerts
|
|
</Typography>
|
|
|
|
<Stack sx={{ width: "100%" }} spacing={2}>
|
|
<Alert severity="error">This is an error alert — check it out!</Alert>
|
|
|
|
<Alert severity="warning">
|
|
This is a warning alert — check it out!
|
|
</Alert>
|
|
|
|
<Alert severity="info">This is an info alert — check it out!</Alert>
|
|
|
|
<Alert severity="success">
|
|
This is a success alert — check it out!
|
|
</Alert>
|
|
</Stack>
|
|
</Card>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default BasicAlerts;
|