Skip to content

Add support for css prop on custom elements #2883

Answered by Andarist
overbalance asked this question in Q&A
Discussion options

You must be logged in to vote

Note that if you are using web components and you are only interested in using the @emotion/css package then you can just use the class prop:

<my-component class={css`color:red`}></my-component>

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@overbalance
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by overbalance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #2879 on September 05, 2022 15:04.