Crates.io | material-design-icons |
lib.rs | material-design-icons |
version | 7.4.48 |
created_at | 2025-05-08 20:28:34.54511+00 |
updated_at | 2025-05-08 20:46:51.976969+00 |
description | Material Design Icons in the form of string constants |
homepage | |
repository | https://github.com/ramiroaisen/rust-material-design-icons |
max_upload_size | |
id | 1665798 |
size | 2,858,743 |
This crate provides Material Design Icons as string constants, making it easy to integrate these icons into your Rust projects.
The crate is automatically published to crates.io using a GitHub Action every time there's a new version of @mdi/js npm package. Ensuring that you have access to the latest icons from mdi.
Versions of this crate are automatically synced with the versions of @mdi/js npm package.
cargo add material-design-icons
To use the icons in your project, simply import the crate and access the constants:
The constants refer to the
/// Example for a Leptos/Sycamore DOM like framework, adjust it according to your needs.
use material_design_icons as mdi;
#[component]
fn App() -> View {
view! {
<svg viewBox="0 0 24 24">
<path d=mdi::CHECK />
</svg>
}
}
The source code for this crate is available on GitHub.
This project is dual-licensed under either: