Skip to content

Commit

Permalink
Added Box docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps committed Aug 23, 2019
1 parent 8648de1 commit 66a2848
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions src/docs/Core/Box.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
## name: Box
---

import { Playground } from 'docz'
import { Box, Scrollable, Heading, Paragraph } from '../../index'

# Box

### As Prop

<Playground>
<Box>Box is a div by default</Box>
<Box as="h2">But actually,</Box>
<Box as="button" onClick={() => alert('Clicked Box')}>
A Box can be anything!
</Box>
</Playground>
2 changes: 1 addition & 1 deletion src/docs/Core/Scrollable.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
## name: Flexible
## name: Scrollable
---

import { Playground } from 'docz'
Expand Down

0 comments on commit 66a2848

Please sign in to comment.