#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

Download history 8/week @ 2024-02-14 46/week @ 2024-02-21 4/week @ 2024-02-28 1/week @ 2024-03-06 19/week @ 2024-03-13 38/week @ 2024-03-27 41/week @ 2024-04-03

79 downloads per month
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
~209K SLoC