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

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

#360 in Images

Download history 4/week @ 2024-02-21 3/week @ 2024-02-28 3/week @ 2024-03-06 140/week @ 2024-03-13 10/week @ 2024-03-20 17/week @ 2024-03-27 31/week @ 2024-04-03

199 downloads per month
Used in md-dir-builder

MIT license

2.5MB
637 lines

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
~121K SLoC