Skip to content

Commit dbf2f13

Browse files
committed
docs: add image for README.md
1 parent 5183677 commit dbf2f13

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# rescript-chakra
2-
3-
> ReScript binding for React Chakra-UI.
1+
<p align="center">
2+
<img src="./rescript-chakra.png" />
3+
<br />
4+
<br />
5+
<a href="#installation">Installation</a> // <a href="#example">Example</a> // <a href="#contribution">Contribution</a> // <a href="#acknowledgement">Acknowledgement</a>
6+
</p>
47

58
## ToC
69

@@ -81,11 +84,11 @@ open Chakra
8184
@react.component
8285
let make = () => <>
8386
// m={2} refers to the value of `theme.space[2]`
84-
<Box m={#two}> {"Tomato"->React.string} </Box>
87+
<Box m={#2}> {"Tomato"->React.string} </Box>
8588
// You can also use custom values
8689
<Box maxW={#px(960)} mx=#auto />
8790
// sets margin `8px` on all viewports and `16px` from the first breakpoint and up
88-
<Box m={#array([#two, #three])} />
91+
<Box m={#array([#2, #3])} />
8992
</>
9093
```
9194

rescript-chakra.png

96.2 KB
Loading

0 commit comments

Comments
 (0)