Callbacks fired on hits.
The layer this region belongs to (must match synced layer ids).
OptionalpriorityHit-test priority within the same layer. Higher values win when regions
overlap (default 0).
This exists because React mounts children before parents, so a child control (e.g. a button inside a panel) would otherwise register before its parent and lose overlap resolution. Give controls a higher priority than their container.
The region geometry in 1-based terminal coordinates.
Unique identifier for this region within the layer. Callers are responsible for uniqueness — duplicate ids in the same layer overwrite each other's registration.
A mouse region registration.
layerIdmust match the ids used in the engine's synced SyncState layers so hit-testing can apply the same modal > layer > root priority as keyboard events: while any modal is open, only the topmost modal layer is hit-tested, and a miss on it is dead (no fall-through to lower modals, regular layers, or root regions).regionIdis an arbitrary unique identifier for the region within that layer — it is NOT the id of a keyboard layer element; two regions in the same layer must use different ids or the later registration overwrites the earlier one.Example