Skip to content

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 / onPointerOut mirror the underlying Pixi events and the existing onClick naming — reach for these when enter and leave need independent handlers.
  • onHover(hovering) is the convenience form: called with true on enter and false on 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).

optional onHover?: (hovering) => void

Defined in: ui/src/types.ts:220

boolean

void


optional onPointerOut?: () => void

Defined in: ui/src/types.ts:219

void


optional onPointerOver?: () => void

Defined in: ui/src/types.ts:218

void