You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the official documentation, the css prop is taken and passed, but I'm wondering if there is any difference between that and creating a className and passing it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hello
I'm creating a component utilizing panda css and I have a question.
I'm using compoundVariants to create a button component because there are many different combinations.
I checked and it seems that the styles for compoundVariants are created in @layer utilities.
When I create atomic recipes in the parent component and pass them in, they are also created in @layer utilities.
Which is more prioritized?
Also, is there a difference between getting the className when merging styles from the parent and getting the css prop and merging it into cx?
In the official documentation, the css prop is taken and passed, but I'm wondering if there is any difference between that and creating a className and passing it.
Beta Was this translation helpful? Give feedback.
All reactions