File size: 1,563 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Stack, Typography, Fab } from '@mui/material';
import AddShoppingCartIcon from '@mui/icons-material/NavigationTwoTone';
import EditIcon from '@mui/icons-material/EditTwoTone';

export const FABView = () => {
    return (
        <Stack spacing={3}>
            <Typography variant="h6" fontWeight="bold">
                Floating Action Button
            </Typography>
            <Stack direction='row' spacing={2} flexWrap={'wrap'}>
                <Fab color='primary'>
                    <EditIcon />
                </Fab>

                <Fab color='secondary' >
                    <EditIcon />
                </Fab>
                <Fab color='tertiary'>
                    <EditIcon />
                </Fab>
                <Fab color='surface'>
                    <EditIcon />
                </Fab>
            </Stack>
            <Stack direction='row' spacing={2} flexWrap={'wrap'}>
                <Fab color='primary' variant='extended'>
                    <AddShoppingCartIcon sx={{ mr: 1 }} /> Navigation
                </Fab>

                <Fab color='secondary' variant='extended'>
                    <AddShoppingCartIcon sx={{ mr: 1 }} /> Navigation
                </Fab>
                <Fab color='tertiary' variant='extended'>
                    <AddShoppingCartIcon sx={{ mr: 1 }} /> Navigation
                </Fab>
                <Fab color='surface' variant='extended'>
                    <AddShoppingCartIcon sx={{ mr: 1 }} /> Navigation
                </Fab>
            </Stack>
        </Stack>
    )
};