leptos-use/src/lib.rs

30 lines
641 B
Rust
Raw Normal View History

2023-05-27 03:00:08 +01:00
//! Collection of essential Leptos utilities inspired by SolidJS USE / VueUse
2023-05-14 22:45:38 +01:00
pub mod core;
2023-05-29 01:52:03 +01:00
#[cfg(feature = "docs")]
pub mod docs;
2023-06-03 05:25:45 +01:00
#[cfg(feature = "math")]
pub mod math;
2023-05-27 03:00:08 +01:00
mod use_debounce_fn;
mod use_event_listener;
2023-06-02 13:38:01 +01:00
mod use_mouse;
2023-05-29 01:52:03 +01:00
#[cfg(web_sys_unstable_apis)]
mod use_resize_observer;
2023-05-27 03:00:08 +01:00
mod use_scroll;
2023-05-29 01:52:03 +01:00
mod use_supported;
2023-05-27 03:00:08 +01:00
mod use_throttle_fn;
2023-05-19 00:58:48 +01:00
pub mod utils;
2023-05-29 01:52:03 +01:00
mod watch;
pub use use_debounce_fn::*;
pub use use_event_listener::*;
2023-06-02 13:38:01 +01:00
pub use use_mouse::*;
2023-05-29 01:52:03 +01:00
#[cfg(web_sys_unstable_apis)]
pub use use_resize_observer::*;
2023-05-19 00:58:48 +01:00
pub use use_scroll::*;
2023-05-29 01:52:03 +01:00
pub use use_supported::*;
2023-05-19 00:58:48 +01:00
pub use use_throttle_fn::*;
2023-05-29 01:52:03 +01:00
pub use watch::*;
2023-05-27 03:00:08 +01:00
extern crate self as leptos_use;