Skip to main content

Gesture

A host gesture-intent wrapper.

Props​

PropTypeRequired
accessibilityHintstringNo
durationnumberNo
enabledbooleanNo
kindstringYes
labelstringNo
semanticsstringNo

Types describe evaluated values. Literal native attributes use the declared decoder; use bind-* for expressions. any still has the semantic constraints listed below. Common document attributes (class, state, show, etc.) are separate from props.

Example​

<Gesture kind="longPress" duration="0.5" on-gesture="emit held"><Text text="Hold here" /></Gesture>

Defaults, values, and validation​

kind accepts longPress/drag; duration is 0–2 seconds, default 0.5. Keep an accessible alternative for essential gesture actions.

Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.

Events​

on-gesture

gesture carries {phase, x, y}; x/y are gesture displacement in logical units.

Local commands​

No local commands.

Native primitive index · Events · Host APIs