Replies: 1 comment
-
Are you referring to this change? From the code you provide it looks like you are passing the string |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'd like to ask how can I pass class as props?
In V3 you migrated from
className={styles.sth}
toclassName={sth}
which is fine.However what can I do if I have following situation:
MyComponent:
<Button modifier={'sth'}>click me</Button>
Button:
button onClick={onClick} className={`${container} ${modifier}`}>
However this sth doesn't get a css module classname, just a regular
sth
, so Button doesn't recieve styles from modifierBeta Was this translation helpful? Give feedback.
All reactions