Replies: 1 comment
-
Found an answer in the docs: You can use the |
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
-
I've run into a few cases where I need to apply a few
className
values with Panda and I'm not sure what the suggested approach is. Or, combine several recipes into oneclassName
.For example, with NextJS, you can use their font className like so:
className={inter.className}
, but what should I do if I want to combine that with the Pandacss
function?Here's two ways I've tried that both work:
className={inter.className + ' ' + css(...)}
clsx
:className={clsx(inter.className, css(...))}
I was wondering if the Panda team has run into similar situations and/or has a suggested approach. Maybe a built-in utility I didn't find yet?
Beta Was this translation helpful? Give feedback.
All reactions