headless

API resizeObserver

createResizeObserver

function

createResizeObserver(): object

Create a resize observer object

Returns

object

An object containing the store with the dimentions of observed element (ResizeObserverEntry), the directive to be applied to the html element to be observed

dimensions$

dimensions$: ReadableSignal<undefined | ResizeObserverEntry>

directive

directive: Directive<void, SSRHTMLElement>