leptos-use/src/lib.rs
2023-06-11 17:11:16 +01:00

59 lines
1.3 KiB
Rust

#![feature(doc_cfg)]
//! Collection of essential Leptos utilities inspired by SolidJS USE / VueUse
pub mod core;
#[cfg(feature = "docs")]
pub mod docs;
#[cfg(feature = "math")]
pub mod math;
#[cfg(feature = "storage")]
pub mod storage;
pub mod utils;
#[cfg(web_sys_unstable_apis)]
mod use_element_size;
#[cfg(web_sys_unstable_apis)]
mod use_resize_observer;
#[cfg(web_sys_unstable_apis)]
pub use use_element_size::*;
#[cfg(web_sys_unstable_apis)]
pub use use_resize_observer::*;
mod use_breakpoints;
mod use_debounce_fn;
mod use_element_visibility;
mod use_event_listener;
mod use_favicon;
mod use_intersection_observer;
mod use_media_query;
mod use_mouse;
mod use_preferred_contrast;
mod use_preferred_dark;
mod use_scroll;
mod use_supported;
mod use_throttle_fn;
mod watch;
mod watch_debounced;
mod watch_pausable;
mod watch_throttled;
mod whenever;
pub use use_breakpoints::*;
pub use use_debounce_fn::*;
pub use use_element_visibility::*;
pub use use_event_listener::*;
pub use use_favicon::*;
pub use use_intersection_observer::*;
pub use use_media_query::*;
pub use use_mouse::*;
pub use use_preferred_contrast::*;
pub use use_preferred_dark::*;
pub use use_scroll::*;
pub use use_supported::*;
pub use use_throttle_fn::*;
pub use watch::*;
pub use watch_debounced::*;
pub use watch_pausable::*;
pub use watch_throttled::*;
pub use whenever::*;