-
I want to define a bunch of "style groups" and apply them conditionally like this: css(buttonDefault, { _hover: buttonHover, _active: buttonActive }) I've tried using How can I do this? Is there any way this can be achieved? And yes, I do need the states separately in some cases. I don't want to combine them. |
Beta Was this translation helpful? Give feedback.
Answered by
anubra266
Apr 9, 2025
Replies: 1 comment 5 replies
-
@alinnert I don't fully understand your issue. But if a style is for hover, then the _hover should be within buttonHover I suppose |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By @alinnert I meant create different config recipes including the condiiton i.e. _focus _hover, etc.
SImilar to my initial suggestion, but since config recipes are not statically extracted, it means you can share the style objects across the different recipes.
https://play.panda-css.com/EuA_HU0afE