This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
packages/chakra-ui-core/src Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,18 @@ storiesOf('UI | Flex', module)
2222 </CFlex>
2323 `
2424 } ) )
25+ . add ( 'Flex grow' , ( ) => ( {
26+ components : { CFlex, CBox, CText } ,
27+ 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>
37+ </CFlex>
38+ `
39+ } ) )
Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ const baseProps = {
6363 borderLeft : SNA ,
6464 borderRight : SNA ,
6565 borderTop : SNA ,
66+ borderTopLeftRadius : SNA ,
67+ borderTopRightRadius : SNA ,
68+ borderBottomRightRadius : SNA ,
69+ borderBottomLeftRadius : SNA ,
6670 borderBottom : SNA ,
6771 shadow : SNA ,
6872 backgroundColor : SNA ,
@@ -158,7 +162,8 @@ const baseProps = {
158162 opacity : SNA ,
159163 letterSpacing : SNA ,
160164 flexShrink : SNA ,
161- boxShadow : SNA
165+ boxShadow : SNA ,
166+ flexGrow : SNA
162167}
163168
164169export default baseProps
You can’t perform that action at this time.
0 commit comments