Skip to main content

Module hooks

Module hooks 

Source
Expand description

Custom Dioxus hooks for the Logicaffeine UI.

This module provides reusable hooks for common UI patterns.

Re-exports§

pub use use_device_pixel_grid::use_device_pixel_grid;
pub use use_device_pixel_grid::PixelGrid;
pub use use_inactivity_timer::use_inactivity_timer;
pub use use_inactivity_timer::InactivityState;
pub use use_media::use_media;
pub use use_viewport_width::use_viewport_width;
pub use use_visual_viewport::use_keyboard_inset;

Modules§

use_device_pixel_grid
Where the screen’s pixels fall under an element: how large one device pixel is, and how far the element’s box starts past the device-pixel grid, kept current as the page zooms, moves to a screen of another density, or lays the element out anew.
use_inactivity_timer
Inactivity timer hook for detecting when users need help.
use_media
Whether the page matches a media query, kept current as the window changes.
use_viewport_width
The page’s width, kept current as the window resizes.
use_visual_viewport
How much of the window an on-screen keyboard covers.