Skip to content

twin.macro for non base components #602

Answered by gaussylean
gaussylean asked this question in Q&A
Discussion options

You must be logged in to vote

Ah sorry, I've figured it out. If you're using styled components, you need to make sure that you're taking in className as a prop and passing it to your parent element in your custom component.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by gaussylean
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