#window #dioxus #width-height #hook #browser #size #use-window

dioxus-use-window

use_window hooks for dioxus

16 releases

0.7.0 Mar 7, 2023
0.6.3 Jun 9, 2022
0.6.2 Feb 12, 2022
0.5.2 Feb 11, 2022
0.1.0 Feb 10, 2022

#17 in #width-height


Used in dioxus-hooks-plus

MPL-2.0 license

27KB
577 lines

useWindow

A really common need is to get the current size of the browser window.

This hook returns an object containing the window's width and height.

If executed server-side (no window object) the value of width and height will be regard as iPhone X.

Dependencies

~11MB
~207K SLoC