-
-
Notifications
You must be signed in to change notification settings - Fork 232
-
🚀 Feature request
I'm looking for something like the Button component in React Aria. Because styling with attributes that it provides looks and feels better than using CSS :active.
🧱 Problem Statement / Justification
CSS :active does not work in a expected way. For example background highlight added with :active does not work when pressed quickly. It gives poor and cheap feeling.
✅ Proposed solution or API
Whatever React Aria does. I'm only looking for the styling feature of on press. But it seems like react aria offers more than that and it may be useful to add it all.
↩️ Alternatives
I can create a custom even that fires on pointer up and down and add a custom attribute using that... Or just use :active.
📝 Additional Information
https://react-spectrum.adobe.com/react-aria/Button.html
there was this pressable component before that got deleted for reasons explained in one of these links.
Beta Was this translation helpful? Give feedback.