@@ -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