Currently, the Button component provides standard click events, but for more advanced interactions, it would be beneficial to have access to these additional mouse events.
Motivation
Exposing mousedown and mouseup events would allow developers to implement features such as:
Custom Press-and-Hold Actions: Trigger actions when the button is pressed and held down.
Advanced UI Interactions: Such as starting animations on mousedown and stopping them on mouseup.
Improved Accessibility: By providing more granular control over mouse interactions.
Summary
Currently, the Button component provides standard click events, but for more advanced interactions, it would be beneficial to have access to these additional mouse events.
Motivation
Exposing
mousedown
andmouseup
events would allow developers to implement features such as: