VStack

The VStack component is a layout component that uses flexbox to vertically layout its children.

It has a display: flex style with flex-direction: column.

How to use

1const before = (
2  <VStack>
3    <Box bg="blue" w={25} h={25} />
4    <Box bg="blue" w={25} h={25} />
5    <Box bg="blue" w={25} h={25} />
6  </VStack>
7)
8
9const after = (
10  <div className="d3 d4">
11    <div className="d0 d1 d2"></div>
12    <div className="d0 d1 d2"></div>
13    <div className="d0 d1 d2"></div>
14  </div>
15)
1const before = (
2  <VStack>
3    <Box bg="blue" w={25} h={25} />
4    <Box bg="blue" w={25} h={25} />
5    <Box bg="blue" w={25} h={25} />
6  </VStack>
7)
8
9const after = (
10  <div className="d3 d4">
11    <div className="d0 d1 d2"></div>
12    <div className="d0 d1 d2"></div>
13    <div className="d0 d1 d2"></div>
14  </div>
15)