-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emotion 10 docs #799
Emotion 10 docs #799
Conversation
Worth reading through - facebook/react#13456 . I suspect those problems don't apply as much to us as in react-redux, but still would be good to benchmark this for emotion@10 |
Codecov Report
|
``` | ||
|
||
Alternatively, you can use the css prop and create a regular component like this. | ||
Some css-in-js libraries offer APIs to attach props to components, instead of having our own API to do that, we recommend creating a regular react component, using the css prop and attaching props like you would with any other React component. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while this obviously should not require an example, maybe it's worth to add one, just so we can refer people to it when they start asking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example for it is below.
@@ -154,3 +154,22 @@ render(<H1 color="lightgreen">This is lightgreen.</H1>) | |||
``` | |||
|
|||
This API was inspired by [glamorous](https://github.com/paypal/glamorous). ❤️ | |||
|
|||
### Customizing prop forwarding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes #655
🎉🎉🎉❤️❤️❤️ |
This is very WIP and I'm aware a bunch of stuff is broken and I haven't totally figured out how we're going to fit the docs for the old api with the new docs but I wanted to open this anyway
https://next-docs.emotion.sh