Skip to content

PointerEventProps

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

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. UIButton, UICheckbox and the interactive @pixi/ui wrappers suppress all three while they are disabled.

optional onHover?: (hovering) => void

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

boolean

void


optional onPointerOut?: () => void

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

void


optional onPointerOver?: () => void

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

void

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/ui.md.