twin.macro for non base components #602
Answered
by
gaussylean
gaussylean
asked this question in
Q&A
-
Let's say I have another React component like Is there anyway to do inline tw styling on them? So something like |
Beta Was this translation helpful? Give feedback.
Answered by
gaussylean
Jan 4, 2022
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gaussylean
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.