Crates.io | dioxus-fluent-sysicon |
lib.rs | dioxus-fluent-sysicon |
version | 0.1.1 |
created_at | 2025-09-18 06:25:39.774469+00 |
updated_at | 2025-09-18 07:06:21.976626+00 |
description | Microsoft Fluent System Icon for dioxus |
homepage | |
repository | https://githubg.com/rootfebri/dioxus-fluent-sysicon |
max_upload_size | |
id | 1844290 |
size | 7,872,470 |
Small procedural macro crate that exposes a single macro: icon!
.
It generates a reusable Dioxus component (React-like) using rsx!
, so you can drop Fluent System Icons directly into your UI.
dioxus-rsx
0.6 under the hood)assets/
use dioxus::prelude::*;
#[component]
#[allow(non_snake_case)]
fn App() -> Element {
rsx! {
div { class: "flex justify-center items-center", {
dioxus_fluent_sysicon::icon!{
name: "building_home_color", // default size is 16px
class: "size-12", // e.g. Tailwind size utility (~96px)
}
}}
}
}
Notes
icon!
macro expands into rsx!
markup; any additional tokens inside the block are forwarded as attributes/props to the generated node.class
(or width/height) to style the SVG.assets/
without the .svg
extension (see ICON.md
).See ICON.md
for the full list of available icon names and quick tips.
The SVG assets come from Microsoft Fluent System Icons and retain their original license: https://github.com/microsoft/fluentui-system-icons
This crate adopts that licensing for those assets. Code in this crate is provided under the crate’s own license; see LICENSE*
files.