Skip to content

Conversation

noahlaux
Copy link

This PR provides a way to provide options to the underlying ResizeObserver.

Usage

useResizeObserver(target, (entry) => setSize(entry.contentRect), { box: ['device-pixel-content-box']} );

Closes #298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the box options property for useResizeObserver
1 participant