Add data-* state to button component #1393
buhodev
started this conversation in
Feature Requests / 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Add
data-focus
,data-active
anddata-hover
to the button component.Currently I am doing it in userland easily but I believe this should be something that bits-ui should handle internally:
Reason for this is to allow the user to style the different button states with data classes, e.g.
data-focus:outline
will be applied when the button is focused with the keyboard and not by double clicking on it.Beta Was this translation helpful? Give feedback.
All reactions