Add className support to compoundVariants #3493
thisissakamoto
started this conversation in
Ideas
Replies: 0 comments
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.
-
Description
Add className support to compoundVariants
Description
Currently, compoundVariants generate long, complex class names that include all variant combinations and CSS properties. This makes the HTML output verbose and difficult to debug. Pandacss should add support for a
classNameproperty in compoundVariant objects to allow custom, predictable class names for specific variant combinations. e.gCurrent Behavior
When using compoundVariants, the generated class name includes:
Example output:
Expected output:
or related
Problem Statement/Justification
Enable custom className for compound variant combinations
Proposed Solution or API
Alternatives
No response
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions