OptionalactiveWhether this element is currently active. Defaults to true when
omitted. Toggled via activateElement/deactivateElement
(or their modal equivalents).
This flag has nothing to do with React rendering — the element stays
mounted either way. It is consumed by the keyboard engine: when an
element is deactivated, its elementId is removed from the layer's
activeElements set, so the keyboard engine stops dispatching key
events to that element's bindings while keeping all registration
data intact for a later reactivation.
Elements to be applied to the layer
The ID of this element; it must be unique within the layer containing the element.
OptionalpropsProps passed to the element when it is rendered. Stored as a plain
record; type safety lives at the applyElement call site, which
narrows props to the element component's own prop type.
An element stored in a layer.
Holds the element component, its props, and its keyboard-active flag.