Is there a way to force a :hover / :active state with the react-aria Button?
#5667
|
My use case is a little niche, but essentially want to have a storybook like setup where I display all the button variants and their possible states so I can better adjust their colors I was hoping I could use Not too tricky to work around, but curious about this sort of use case! |
Answered by
reidbarber
Jan 8, 2024
Replies: 1 comment 1 reply
|
Have not tested, but would this addon work? https://github.com/chromaui/storybook-addon-pseudo-states Or maybe interaction tests with play functions: https://storybook.js.org/docs/writing-tests/interaction-testing |
1 reply
Answer selected by
sbdchd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have not tested, but would this addon work? https://github.com/chromaui/storybook-addon-pseudo-states
Or maybe interaction tests with play functions: https://storybook.js.org/docs/writing-tests/interaction-testing