dioxus_free_icons/lib.rs
1//! # dioxus-free-icons
2//!
3//! Use free svg icons in your Dioxus projects easily with dioxus-free-icons.
4//! This library provides Icon component, which will generate SVG for a Font Awesome icon.
5//!
6//! Basic usage:
7//! ```ignore
8//! use dioxus::prelude::*;
9//! use dioxus_free_icons::icons::fa_brands_icons::FaRust;
10//! use dioxus_free_icons::Icon;
11//!
12//! fn RustIcon() -> Element {
13//! rsx!(
14//! Icon {
15//! width: 30,
16//! height: 30,
17//! fill: "black",
18//! icon: Icon::FaRust,
19//! }
20//! )
21//! }
22//! ```
23mod icon_component;
24
25/// a collections of free icons
26pub mod icons;
27pub use crate::icon_component::{Icon, IconProps, IconShape};