Skip to main content

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;
24pub mod tile;
25
26pub mod prelude {
27    pub use crate::{
28        button::*,
29        floating_tab::*,
30        menu::*,
31        ripple::*,
32        sidebar::*,
33        tile::*,
34    };
35}