styled and cs in typescript #311
-
Hi, I saw that you changed the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hey there! I've added the cs prop (and it's types) but it's different to the css prop and allows the short css syntax to be written in there. It also works with the css prop, so you can use both props at the same time if you need to. eg:
The types for styled come from your chosen css-in-js library, if you want to set that up check out one of the example readmes for the setup.
|
Beta Was this translation helpful? Give feedback.
-
Is there a reason why the cs prop is nowhere to be found in the documentation? |
Beta Was this translation helpful? Give feedback.
Hey there!
I've added the cs prop (and it's types) but it's different to the css prop and allows the short css syntax to be written in there. It also works with the css prop, so you can use both props at the same time if you need to.
eg: