Optional
options: Partial<ButtonOptions>Height in pixels. Only for rectangle shaped buttons
TRUE if mouse cursor is over the button
X-axis and Y-axis offset
Function executed when the button's click
Function executed when the button is pressed
TRUE if it's pressed
Radius in pixels. Only for circumference shaped buttons
The shape of the button
Enables interaction with touch screens
Width in pixels. Only for rectangle shaped buttons
The Button component creates an interactive button that can be clicked or pressed.
It supports rectangular or circular shapes and can be configured with dimensions, position offset, touch input, and click/press event handlers.
Example