Skip to content
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

Merged
merged 39 commits into from Oct 8, 2018
Merged

Emotion 10 docs #799

merged 39 commits into from Oct 8, 2018

Conversation

emmatown
Copy link
Member

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

@emmatown emmatown added the WIP label Aug 11, 2018
@emmatown emmatown mentioned this pull request Aug 29, 2018
3 tasks
@Andarist
Copy link
Member

Andarist commented Sep 8, 2018

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
Copy link

codecov bot commented Sep 30, 2018

```

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.
Copy link
Member

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

Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #655

@emmatown emmatown merged commit 789f94d into master Oct 8, 2018
@fforres
Copy link

fforres commented Oct 8, 2018

🎉🎉🎉❤️❤️❤️

@Andarist Andarist deleted the next-docs branch November 10, 2020 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants