Crate dioxus_free_icons

source ·
Expand description

§dioxus-free-icons

Use free svg icons in your Dioxus projects easily with dioxus-free-icons. This library provides Icon component, which will generate SVG for a Font Awesome icon.

Basic usage:

use dioxus::prelude::*;
use dioxus_free_icons::icons::fa_brands_icons::FaRust;
use dioxus_free_icons::Icon;

fn RustIcon() -> Element {
    rsx!(
        Icon {
            width: 30,
            height: 30,
            fill: "black",
            icon: Icon::FaRust,
        }
    )
}

Modules§

  • a collections of free icons

Structs§

Traits§

Functions§

  • Icon component which generates SVG elements