Primitives / foldkit-primitives/observers
Resize
const · packages/primitives/src/observers/resize.ts:17
const Resize: Mount.MountDefinitionNoArgs<
'Resize',
{ readonly _tag: 'Resized'; readonly width: number; readonly height: number }
>Element size as a Mount: ResizeObserver reports content-box changes as Messages for the element carrying this Mount. No observer (SSR, old browser) emits nothing instead of throwing.
In the guides
- Which form a primitive takesPrimitives / foldkit-primitives
- Find one by the jobPrimitives / foldkit-primitives
- The mapPrimitives / foldkit-primitives
- foldkit-primitives/observersPrimitives / Observers
- Start with one: an element's sizePrimitives / Observers