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

dioxus-use-dialog

use_dialog hooks for dioxus

1 unstable release

0.1.0 Feb 12, 2022

#24 in #width-height

MPL-2.0 license

5KB
50 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

~12–20MB
~291K SLoC