Skip to content

Commit

Permalink
feat(Typography): add binding for Heading and Text
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Jun 28, 2021
1 parent 51a1924 commit 9f707a2
Show file tree
Hide file tree
Showing 6 changed files with 1,903 additions and 32 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ All of Style Props implementation is write in File:[Chakra__MakeProps.res](https
### Typography
- [ ] Text
- [ ] Heading
- [x] Text
- [x] Heading

### Overlay
- [ ] Alert Dialog
Expand Down
327 changes: 295 additions & 32 deletions examples/app.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions examples/app.res
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
module TextAndHeading = {
open Chakra
@react.component
let make = () => <>
<Text noOfLines=#num(5)> {"Hello"->React.string} </Text>
<Text noOfLines=#array([5, 6, 7])> {"Hello"->React.string} </Text>
<Text _as=#i casing=#lowercase> {"Hello"->React.string} </Text>
</>
}
/**
@see <https://chakra-ui.com/docs/features/style-props#margin-and-padding>
**/
Expand Down
2 changes: 2 additions & 0 deletions src/Chakra.res
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ module Kbd = Chakra__Kbd
// TODO Typography
// module Text = Chakra__Text;
// module Heading = Chakra__Heading;
module Text = Chakra__Text
module Heading = Chakra__Heading

// ### Overlay
// TODO Overlay
Expand Down
Loading

0 comments on commit 9f707a2

Please sign in to comment.