Custom Component State Not Working with Modifiers #17145
Unanswered
PruthviPraj00
asked this question in
Help
Replies: 2 comments 7 replies
-
You'd need to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @wongjn, Thank you for your help. But this will be my structure.
But this throw error
|
Beta Was this translation helpful? Give feedback.
7 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.
-
What version of Tailwind CSS are you using?
v4.0.13
Reproduction URL
https://play.tailwindcss.com/V9PpCvsjHl
Describe your issue
I'm experiencing an issue where component states, like an active state on a button, aren't working as expected when using the modifiers. In the example I provided (link above), I've created a simple button component with a
.btn-active
state. However, when I try to apply styles using the modifier, they don't take effect.You can see the problem in the provided playground link, and I’ve also attached a screenshot for reference.
Beta Was this translation helpful? Give feedback.
All reactions