4 releases

0.2.2 Sep 23, 2022
0.2.1 Sep 23, 2022
0.2.0 Sep 23, 2022
0.1.0 Sep 23, 2022

#324 in Images

41 downloads per month
Used in md-dir-builder

MIT license

2.5MB
633 lines

md-icons

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.


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