Size
Updated on September 7, 2024Source codeTests
useSize is an extension that tracks the dimensions of an element, and whether that element's width is currently wider than certain breakpoints.
Under the hood, useSize uses the ResizeObserver API for performant size tracking.
Example
Resize this element:
Height: 64, Width: 64