Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit ea0abd7

Browse files
committed
chore(flex-grow): add story to showcase flexgrow and border style props
1 parent ca0be60 commit ea0abd7

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

packages/chakra-ui-core/src/CFlex/CFlex.stories.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ storiesOf('UI | Flex', module)
2525
.add('Flex grow', () => ({
2626
components: { CFlex, CBox, CText },
2727
template: `
28-
<CFlex align="center">
29-
<CBox rounded-top="lg" p="3" w="20" mr="3" h="20" bg="blue.100">1</CBox>
30-
<CBox rounded-right="lg" p="3" w="20" mr="3" h="20" bg="blue.100">2</CBox>
31-
<CBox rounded-bottom="lg" p="3" w="20" mr="3" h="20" bg="blue.100">3</CBox>
32-
<CBox rounded-right="lg" p="3" w="20" mr="3" h="20" bg="blue.100">4</CBox>
33-
<CBox border-top-right-radius="lg" p="3" w="20" mr="3" h="20" bg="blue.100">5</CBox>
34-
<CBox border-top-left-radius="lg" p="3" w="20" mr="3" h="20" bg="blue.100">6</CBox>
35-
<CBox border-bottom-right-radius="lg" p="3" w="20" mr="3" h="20" bg="blue.100">7</CBox>
36-
<CBox border-bottom-left-radius="lg" p="3" w="20" h="20" bg="blue.100">8</CBox>
28+
<CFlex w="600px" align="center">
29+
<CBox flex-grow="2" w="10" mr="3" h="10" bg="blue.100">1</CBox>
30+
<CBox rounded-top="lg" w="10" mr="3" h="10" bg="blue.100">1</CBox>
31+
<CBox rounded-right="lg" w="10" mr="3" h="10" bg="blue.100">2</CBox>
32+
<CBox rounded-bottom="lg" w="10" mr="3" h="10" bg="blue.100">3</CBox>
33+
<CBox rounded-right="lg" w="10" mr="3" h="10" bg="blue.100">4</CBox>
34+
<CBox border-top-right-radius="lg" w="10" mr="3" h="10" bg="blue.100">5</CBox>
35+
<CBox border-top-left-radius="lg" w="10" mr="3" h="10" bg="blue.100">6</CBox>
36+
<CBox border-bottom-right-radius="lg" w="10" mr="3" h="10" bg="blue.100">7</CBox>
37+
<CBox border-bottom-left-radius="lg" w="10" h="10" bg="blue.100">8</CBox>
3738
</CFlex>
3839
`
3940
}))

0 commit comments

Comments
 (0)