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

Commit ca0be60

Browse files
committed
feat: include style props for flex grow and native border radius props
1 parent cf77e26 commit ca0be60

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}))

packages/chakra-ui-core/src/config/props/props.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

164169
export default baseProps

0 commit comments

Comments
 (0)