solid-primitives/resize-observer
Provides a reactive resize observer wrapper.
Installation
npm install @solid-primitives/resize-observer
# or
yarn add @solid-primitives/resize-observer
How to use it
createResizeObserver
Main resize observer primitive.
const refCallback = createResizeObserver(() => console.log("resized"));
Changelog
Expand Changelog
0.0.100
Initial commit of the resize observer.
1.0.3
Release initial version for CJS and SSR support.
1.0.4
Patched HTMLElement to Element to resolve type error on buildd. Updated to Solid 1.3.
Contributors
Thanks to Moshe Udimar for this contribution!