Shared overlay root management for portal-based components. Provides document-level fixed layers that escape CSS stacking contexts.
Shared overlay root management for portal-based components. Provides document-level fixed layers that escape CSS stacking contexts.
(ensure-overlay-root! trigger-el)Return (or create) the fixed overlay container. When an x-theme wrapper exists, the root is placed inside it so theme tokens cascade into panels.
Return (or create) the fixed overlay container. When an x-theme wrapper exists, the root is placed inside it so theme tokens cascade into panels.
(find-theme-host el)Walk up from el to find the nearest x-theme ancestor, or fall back to body.
Walk up from el to find the nearest x-theme ancestor, or fall back to body.
(get-panel layer)Query the layer's shadow root for the panel element.
Query the layer's shadow root for the panel element.
(make-layer! trigger-el style-text z-index)Create a fixed-position layer with its own shadow DOM inside the overlay root. style-text is the CSS for the layer's shadow root. Returns the layer element.
Create a fixed-position layer with its own shadow DOM inside the overlay root. style-text is the CSS for the layer's shadow root. Returns the layer element.
(remove-layer! layer)Remove a layer from the DOM and clean up stored event listeners.
Remove a layer from the DOM and clean up stored event listeners.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |