百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dioxus-free-icons

> 编程语言
开源

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

194 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

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

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:

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.

  • bootstrap
  • codicons
  • font-awesome-brands
  • font-awesome-regular
  • font-awesome-solid
  • feather
  • octicons
  • hero-icons-outline
  • hero-icons-solid
  • ionicons
  • lucide
  • material-design-icons-action
  • material-design-icons-alert
  • material-design-icons-av
  • material-design-icons-communication
  • material-design-icons-content
  • material-design-icons-device
  • material-design-icons-editor
  • material-design-icons-file
  • material-design-icons-hardware
  • material-design-icons-home
  • material-design-icons-image
  • material-design-icons-maps
  • material-design-icons-navigation
  • material-design-icons-notification
  • material-design-icons-places
  • material-design-icons-social
  • material-design-icons-toggle

Example

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

rust
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
Codicons MIT License & CC BY 4.0 License 0.0.36
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.555.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

bash
// generate icon files
cd packages/codegen
cargo run

Preview

bash
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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言