GestureListener
Presentations
v1.0
zero-schema
The pointer-interaction wrapper: runs an action on click/tap, sets the mouse cursor, and can swap its child while hovered (mouse-only).
Required fields
PresentationType Child
Properties
PresentationType
string
required
The pointer-interaction wrapper: runs an action on click/tap, sets the mouse cursor, and can swap its child while hovered. Hover effects need a mouse and quietly do nothing on touch screens.
Allowed GestureListener
Data
string
optional
Additional data that can be associated with the gesture listener, providing context or information for the gesture handling logic.
OnClick
composed
optional
The action executed when the child is clicked or tapped. The legacy spelling OnTap is also accepted.
Child
object
required
The child widget is the part of your app's interface that the user interacts with directly, like a button, image, or text. When you attach a gesture listener to the child widget, it enables the widget to detect and respond to user gestures, such as taps
Cursor
string
optional
Mouse cursor shown over the child, e.g. Click, Text, Move, Forbidden. Desktop/web only.
Hover
object
optional
Prop overrides merged onto Child while the pointer hovers; the merged node is what renders during hover.