Skip to content

How can I apply a group of styles conditionally? #3225

Answered by anubra266
alinnert asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alinnert
Comment options

@anubra266
Comment options

@alinnert
Comment options

@anubra266
Comment options

Answer selected by alinnert
@alinnert
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants