How to pass custom style to component ? #828
-
I want to pass custom style to Header. |
Beta Was this translation helpful? Give feedback.
Answered by
ben-rogerson
Aug 6, 2023
Replies: 1 comment 1 reply
-
You have two options here. The styles need to remain with their
So either:
Some docs for more info: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ben-rogerson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have two options here.
The styles need to remain with their
tw
block - they can't be interpolated:tw`${customTw}`
tw`block`
So either:
tw`block`
isBig
to conditionally add the style to the array:[isBig && tw`block`]
Some docs for more info: