#svg-icons #dioxus #free #projects #font

dioxus-free-icons

Use free svg icons in your Dioxus projects easily with dioxus-free-icons

19 releases

new 0.9.0 Dec 10, 2024
0.8.6 Jun 2, 2024
0.8.5 Apr 21, 2024
0.8.3 Mar 30, 2024
0.5.0 Jul 16, 2022

#54 in Images

Download history 103/week @ 2024-08-19 172/week @ 2024-08-26 98/week @ 2024-09-02 106/week @ 2024-09-09 84/week @ 2024-09-16 234/week @ 2024-09-23 125/week @ 2024-09-30 67/week @ 2024-10-07 93/week @ 2024-10-14 113/week @ 2024-10-21 117/week @ 2024-10-28 113/week @ 2024-11-04 102/week @ 2024-11-11 109/week @ 2024-11-18 83/week @ 2024-11-25 708/week @ 2024-12-02

1,023 downloads per month
Used in 4 crates (3 directly)

MIT license

10MB
271K SLoC

Discord Server Crates.io

dioxus-free-icons 🙂

Use free svg icons in your Dioxus projects easily with dioxus-free-icons.

More information about this crate can be found in the crate documentation.

Install

To use dioxus-free-icons, add this to your Cargo.toml:

[dependencies]
dioxus-free-icons = { version = "0.9", features = ["font-awesome-brands"] }

Support features

The following features are available. Please see react-icons site to check the icon name and icon design.

Example

This library provides Icon component, which will generate SVG for a Font Awesome icon.

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: FaRust,
        }
    )
}

License

This project is licensed under the MIT license.

Icon

Icon Library License Version
Bootstrap Icons MIT License 1.8.3
Feather MIT License 4.29.0
Font Awesome CC BY 4.0 License 6.1.1
Heroicons MIT License 1.0.6
Ionicons MIT License 6.0.2
Lucide ISC License 0.265.0
Material Design icons Apache License 2.0 4.0.0
Octicons MIT License 17.3.0

Contribution

The project welcomes all contributions from anyone willing to work in good faith with other contributors and the community. In particular, contributions regarding support for other free icons such as Material Design icons or Ionicons are welcome. This library aims to be a react-icons-like library for dioxus projects.

Development

// generate icon files
cd packages/codegen
cargo run

Preview

cd packages/exmaple
cargo install dioxus-cli
dx serve

Update icons

  1. checkout a new tag in the icon resource submodule
  2. create new icon files
  3. Update README.md and check the LICENSE

Dependencies

~2.9–8.5MB
~74K SLoC