Typesafe hooks for
responsive & adaptable
web interfaces
A simple way to observe and respond to dom element sizes in React using the performant
ResizeObserver browser API
.
Install Mezz
useWidth
Observe the width of a jsx element
useWidthHeight
Observe both the width and height of an element
useBodyWidth
Observe the width of document.body
FAQ
How does mezz measure elements?
+
Why not use window.matchMedia?
+
Why not use container queries?
+
What does mezz mean?
+