File size: 1,214 Bytes
15975c4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { Stack, Typography, Alert, AlertTitle } from '@mui/material';

export const AlertView = () => {
    return (
        <Stack spacing={3}>
            <Typography variant="h6" fontWeight="bold">
                Alert
            </Typography>
            <Stack direction="column" spacing={2}>
                <Alert severity="error" onClose={() => { }}>
                    <AlertTitle>Error</AlertTitle>
                    This is an error alert β€” <strong>check it out!</strong>
                </Alert>
                <Alert severity="warning" onClose={() => { }}>
                    <AlertTitle>Warning</AlertTitle>
                    This is a warning alert β€” <strong>check it out!</strong>
                </Alert>
                <Alert severity="info" onClose={() => { }}>
                    <AlertTitle>Info</AlertTitle>
                    This is an info alert β€” <strong>check it out!</strong>
                </Alert>
                <Alert severity="success" onClose={() => { }}>
                    <AlertTitle>Success</AlertTitle>
                    This is a success alert β€” <strong>check it out!</strong>
                </Alert>
            </Stack>
        </Stack>
    );
};