freya_material_design/lib.rs
1//! Material Design extensions for Freya.
2//!
3//! # Example
4//!
5//! ```rust
6//! use freya::{
7//! material_design::*,
8//! prelude::*,
9//! };
10//!
11//! fn app() -> impl IntoElement {
12//! Button::new()
13//! .on_press(|_| println!("Pressed"))
14//! .ripple() // Renders a ripple effect upon press
15//! .child("Material Button")
16//! }
17//! ```
18
19pub mod button;
20pub mod floating_tab;
21pub mod menu;
22pub mod ripple;
23pub mod sidebar;
24
25pub mod prelude {
26 pub use crate::{
27 button::*,
28 floating_tab::*,
29 menu::*,
30 ripple::*,
31 sidebar::*,
32 };
33}