Liking cljdoc? Tell your friends :D

baredom.utils.overlay

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.
raw docstring

ensure-overlay-root!cljs

(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.
sourceraw docstring

find-theme-hostcljs

(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.
sourceraw docstring

get-panelcljs

(get-panel layer)

Query the layer's shadow root for the panel element.

Query the layer's shadow root for the panel element.
sourceraw docstring

make-layer!cljs

(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.
sourceraw docstring

remove-layer!cljs

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close