Skip to content

Commit 2b700fd

Browse files
committed
📝 Add docs of FlexBox component
1 parent 59235ef commit 2b700fd

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/box/index.mdx renamed to src/box/about.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { Box } from './index'
77

88
# Box Component
99

10+
Most basic element and most re-usable.
11+
1012
<Playground>
1113
<Box bg='#000000' fg='#ffffff' ht='200px'>
1214
Hello World

src/flex-box/about.mdx

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: FlexBox
3+
---
4+
5+
import { Link, Playground } from 'docz'
6+
import { FlexBox } from './index'
7+
8+
# FlexBox Component
9+
10+
Like `Box` component, but extended with [flexbox](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout) specific props.
11+
12+
<Playground>
13+
<FlexBox>
14+
<FlexBox.Item>
15+
Item
16+
</FlexBox.Item>
17+
<FlexBox.Item grow>
18+
Item
19+
</FlexBox.Item>
20+
<FlexBox.Item>
21+
Item
22+
</FlexBox.Item>
23+
</FlexBox>
24+
</Playground>

0 commit comments

Comments
 (0)