You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #2634 on August 15, 2025 09:45.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
🚀 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.
All reactions