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

dioxus-free-icons

使用 dioxus-free-icons 在 Dioxus 项目中轻松使用免费 SVG 图标

18 个版本

0.8.6 2024 年 6 月 2 日
0.8.3 2024 年 3 月 30 日
0.7.0 2023 年 8 月 5 日
0.6.0 2023 年 1 月 13 日
0.5.0 2022 年 7 月 16 日

#48图像

Download history 177/week @ 2024-04-27 152/week @ 2024-05-04 226/week @ 2024-05-11 234/week @ 2024-05-18 102/week @ 2024-05-25 412/week @ 2024-06-01 466/week @ 2024-06-08 225/week @ 2024-06-15 169/week @ 2024-06-22 159/week @ 2024-06-29 71/week @ 2024-07-06 145/week @ 2024-07-13 121/week @ 2024-07-20 153/week @ 2024-07-27 87/week @ 2024-08-03 79/week @ 2024-08-10

459 每月下载量
用于 3 crates

MIT 许可证

10MB
271K SLoC

Discord Server Crates.io

dioxus-free-icons 🙂

使用 dioxus-free-icons 在您的 Dioxus 项目中轻松使用免费 SVG 图标。

有关此 crate 的更多信息,请参阅 crate 文档

安装

要使用 dioxus-free-icons,请将以下内容添加到您的 Cargo.toml

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

支持功能

以下功能可用。请访问 react-icons 网站 检查图标名称和图标设计。

示例

此库提供了图标组件,该组件将为 Font Awesome 图标生成 SVG。

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

许可证

本项目采用 MIT 许可证。

图标

图标库 许可证 版本
Bootstrap Icons MIT 许可证 1.8.3
Feather MIT 许可证 4.29.0
Font Awesome CC BY 4.0 许可证 6.1.1
Heroicons MIT 许可证 1.0.6
Ionicons MIT 许可证 6.0.2
Lucide ISC 许可证 0.265.0
Material Design 图标 Apache License 2.0 4.0.0
Octicons MIT 许可证 17.3.0

贡献

本项目欢迎所有愿意与其他贡献者和社区真诚合作的贡献。特别是,欢迎关于支持其他免费图标(如Material Design图标或Ionicons)的贡献。这个库旨在成为类似react-icons的库,用于dioxus项目。

开发

// generate icon files
cd packages/codegen
cargo run

预览

cd packages/exmaple
cargo install dioxus-cli
dx serve

更新图标

  1. 在图标资源子模块中检出新的标签
  2. 创建新的图标文件
  3. 更新README.md并检查LICENSE

依赖项

~3–9MB
~81K SLoC