#material-design #svg-icons #material-icons #component #maud

md-icons

Crate for material design icons as string constants or components

7 releases

0.3.2 Mar 14, 2024
0.3.1 Aug 13, 2023
0.2.2 Sep 23, 2022
0.1.0 Sep 23, 2022

#335 in Images


Used in md-dir-builder

MIT license

2.5MB
637 lines

Contains (WOFF font, 215KB) material-icons-two-tone.woff2, (WOFF font, 155KB) material-icons-outlined.woff2, (WOFF font, 175KB) material-icons-round.woff2, (WOFF font, 135KB) material-icons-sharp.woff2, (WOFF font, 130KB) material-icons.woff2

md-icons

Crate for using material design (SVG-) icons from https://github.com/marella/material-design-icons as String constants, as maud or leptos components (feature maud or leptos).

The icons have four different style: filled, outlined, sharp or two_tone. These are directly represented as modules in this crate. You can get an overview of the icons at Google fonts.


lib.rs:

Crate for using material design (SVG-) icons from https://github.com/marella/material-design-icons as String constants or as maud components.

The icons have four different style: filled, outlined, sharp or two_tone. These are directly represented as modules in this crate. You can get an overview of the icons at Google fonts.

Example

Get the SVG as a string:

let hamburger_menu = md_icons::outlined::ICON_MENU;

... or get it as a maud::Markup with the maud feature enabled:

let hamburger_menu = md_icons::outlined::maud_icon_menu();

Dependencies

~2–13MB
~154K SLoC