-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
/
AlignItems.js
65 lines (63 loc) · 1.35 KB
/
AlignItems.js
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import React from 'react';
import { unstable_Box as Box } from '@material-ui/core/Box';
function AlignItems() {
return (
<div style={{ width: '100%' }}>
<Box
display="flex"
alignItems="flex-start"
p={1}
m={1}
bgcolor="background.paper"
css={{ height: 100 }}
>
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
</Box>
<Box
display="flex"
alignItems="flex-end"
p={1}
m={1}
bgcolor="background.paper"
css={{ height: 100 }}
>
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
</Box>
<Box
display="flex"
alignItems="center"
p={1}
m={1}
bgcolor="background.paper"
css={{ height: 100 }}
>
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
<Box p={1} bgcolor="grey.300">
Item 1
</Box>
</Box>
</div>
);
}
export default AlignItems;