Stitches compoundVariants example #523
Unanswered
redbaron76
asked this question in
Q&A
Replies: 2 comments
-
I just tried them, they don't seem to work. Only if I remove both conditions, it applies the const AvatarImg = styled.img({
...tw`rounded-full overflow-hidden h-full w-full`,
compoundVariants: [
{
isConnected: false, // need to remove
isConnecting: false, // need to remove
css: {
...tw`grayscale`,
}
}
],
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'll check this out and get back to you. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, is it possible to have a small example of how
compoundVariants
works inStitches
Twin.Macro implementation?I'm not able to find any reference to this use case neither in documentation nor in some example code.
And official Stitches documentation doesn't help me as well.
Really appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions