How to add multiple classnames? #22
Unanswered
alexradulescu
asked this question in
Q&A
Replies: 1 comment
-
It's just string concatenation. You can do something like this: className={`${defaultButton} ${specialButton} ${props.className}`} or in a more fancy way: className={[defaultButton, specialButton, props.className].filter(Boolean).join(" ")} If you need nicer syntax or additional customization, you can use a small runtime utility like |
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.
-
Hi,
Probably stupid question but imagine the following scenario:
Something like...
Beta Was this translation helpful? Give feedback.
All reactions