Skip to content

Conversation

@rossbulat
Copy link
Contributor

@rossbulat rossbulat commented Nov 2, 2024

Adds a custom useSize hook to get the width and height of a specified element. Updates the size state when the specified "outer element" (or the window by default) resizes.

Allows custom throttle in milliseconds.

@rossbulat rossbulat marked this pull request as ready for review November 2, 2024 03:35
@rossbulat rossbulat merged commit f8ef1ef into main Nov 2, 2024
@rossbulat rossbulat deleted the rb-add-use-size branch November 2, 2024 03:36
This was referenced Nov 2, 2024
@rossbulat rossbulat self-assigned this Nov 2, 2024
This was referenced Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants