Skip to content

styled and cs in typescript #311

Answered by ben-rogerson
itaysmalia asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@itaysmalia
Comment options

@ben-rogerson
Comment options

@itaysmalia
Comment options

@srkrish2
Comment options

@ben-rogerson
Comment options

Answer selected by ben-rogerson
Comment options

You must be logged in to vote
1 reply
@ben-rogerson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants