material-design-icons

Crates.iomaterial-design-icons
lib.rsmaterial-design-icons
version7.4.48
created_at2025-05-08 20:28:34.54511+00
updated_at2025-05-08 20:46:51.976969+00
descriptionMaterial Design Icons in the form of string constants
homepage
repositoryhttps://github.com/ramiroaisen/rust-material-design-icons
max_upload_size
id1665798
size2,858,743
ramiroaisen (ramiroaisen)

documentation

README

Material Design Icons for Rust

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.

Features

  • Access Material Design Icons as string constants.
  • Lightweight and dependency-free.
  • Compatible with any Rust version.

Installation

cargo add material-design-icons

Usage

To use the icons in your project, simply import the crate and access the constants: The constants refer to the attribute for SVG icons.

/// 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>
  }
}

Repository

The source code for this crate is available on GitHub.

License

This project is dual-licensed under either:

Commit count: 36

cargo fmt