PointerEventProps
Defined in: ui/src/types.ts:217
Hover/pointer callbacks shared by the interactive UI primitives. Every UI
primitive’s Pixi container is already eventMode: "static" (the
consume-input fallback), so wiring these is a small fan-out, not new infra.
onPointerOver/onPointerOutmirror the underlying Pixi events and the existingonClicknaming — reach for these when enter and leave need independent handlers.onHover(hovering)is the convenience form: called withtrueon enter andfalseon leave. Ideal for “show while hovered” toggles (tooltips, detail popovers) where one setter handles both edges.
All three are independent and may be combined. Callbacks are suppressed
while the element is disabled (currently only UIButton has a disabled
state).
Extended by
Section titled “Extended by”Properties
Section titled “Properties”onHover?
Section titled “onHover?”
optionalonHover?: (hovering) =>void
Defined in: ui/src/types.ts:220
Parameters
Section titled “Parameters”hovering
Section titled “hovering”boolean
Returns
Section titled “Returns”void
onPointerOut?
Section titled “onPointerOut?”
optionalonPointerOut?: () =>void
Defined in: ui/src/types.ts:219
Returns
Section titled “Returns”void
onPointerOver?
Section titled “onPointerOver?”
optionalonPointerOver?: () =>void
Defined in: ui/src/types.ts:218
Returns
Section titled “Returns”void