Skip to content

Commit df9e16b

Browse files
committed
feat(pseudo): implement pseudo to provide an object for use pseudo props of component
1 parent f99e7c1 commit df9e16b

File tree

8 files changed

+680
-5748
lines changed

8 files changed

+680
-5748
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ This is following and closely same with Chakra-UI. [**See Style Props**](https:/
105105
- [x] [Border Radius](https://chakra-ui.com/docs/features/style-props#border-radius)
106106
- [x] [Position](https://chakra-ui.com/docs/features/style-props#position)
107107
- [x] [Shadow](https://chakra-ui.com/docs/features/style-props#shadow)
108-
- [ ] [Pseudo](https://chakra-ui.com/docs/features/style-props#pseudo) (_NOT implemented_)
108+
- [x] [Pseudo](https://chakra-ui.com/docs/features/style-props#pseudo)
109109
- [ ] [Other Style Props](https://chakra-ui.com/docs/features/style-props#other-props) 🚧 (_Partially Implemented_)
110110

111111
All of Style Props implementation is write in File:[Chakra__MakeProps.res](https://github.com/ri7nz/rescript-chakra/blob/main/src/Interfaces/Chakra__MakeProps.res)

examples/pseudo.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/pseudo.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
open Chakra;
2+
let obj = pseudo(~color=#blue100, ())

src/Chakra.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
let pseudo = Chakra__MakeProps.Pseudo.make
12
module Provider = {
23
@module("@chakra-ui/react") @react.component
34
external make: (

0 commit comments

Comments
 (0)