SSolidJS•Created by musiclover on 2/11/2023 in #support Accessing child element size from parent.
const [target, setTarget] = createSignal<HTMLElement>();
const size = createElementSize(target);
createEffect(() => {
size.width; // => number | null
size.height; // => number | null
});
<div ref={setTarget} />;