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)
22
22
</CFlex>
23
23
`
24
24
} ) )
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 = {
63
63
borderLeft : SNA ,
64
64
borderRight : SNA ,
65
65
borderTop : SNA ,
66
+ borderTopLeftRadius : SNA ,
67
+ borderTopRightRadius : SNA ,
68
+ borderBottomRightRadius : SNA ,
69
+ borderBottomLeftRadius : SNA ,
66
70
borderBottom : SNA ,
67
71
shadow : SNA ,
68
72
backgroundColor : SNA ,
@@ -158,7 +162,8 @@ const baseProps = {
158
162
opacity : SNA ,
159
163
letterSpacing : SNA ,
160
164
flexShrink : SNA ,
161
- boxShadow : SNA
165
+ boxShadow : SNA ,
166
+ flexGrow : SNA
162
167
}
163
168
164
169
export default baseProps
You can’t perform that action at this time.
0 commit comments