react-use-measure icon indicating copy to clipboard operation
react-use-measure copied to clipboard

🙌 Utility to measure view bounds

Results 64 react-use-measure issues
Sort by recently updated
recently updated
newest added

not works with React.forwardRef ```jsx const Button = React.forwardRef(function Button({ children }, ref) { return { children } }) function Component() { const [buttonRef, buttonSize] = useMeasure() console.log(buttonSize) // always...

If I use it on a page where the responsive design alters the zoom value on the body to like 75% to make everything fit, the useMeasure will not correct...

This PR adds an opt-in includeTransforms option that measures an element's visual (post-transform) bounds using getBoundingClientRect() instead of the layout box. When enabled, it uses a requestAnimationFrame loop to detect...

This is more of a curiosity about the inner implementation than an actual issue. Sorry if this is off-topic. After looking around in the open source, I found two main...