Skip to content

How to add sx prop to user-defined component? #2118

Answered by hasparus
PeterlitsZo asked this question in Q&A
Discussion options

You must be logged in to vote

If you use JSX pragma, every sx gets translated into className, what's more, you can combine sx and className and they will be merged.

Do you think this is something that's not covered in the docs too well?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PeterlitsZo
Comment options

@PeterlitsZo
Comment options

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