React refs are a common pattern in NebulaKit. Every component exposes a tagRef, which gives access to the underlying root DOM element rendered by the component. This allows direct interaction with the element for tasks like measuring size, managing focus or integrating with external systems.
In rare cases, a component may not expose tagRef because it already uses a ref internally and overriding it would break existing functionality. However, in most situations you can rely on tagRef being available for direct access and control of the root element.
Example