dioxus-fluent-sysicon

Crates.iodioxus-fluent-sysicon
lib.rsdioxus-fluent-sysicon
version0.1.1
created_at2025-09-18 06:25:39.774469+00
updated_at2025-09-18 07:06:21.976626+00
descriptionMicrosoft Fluent System Icon for dioxus
homepage
repositoryhttps://githubg.com/rootfebri/dioxus-fluent-sysicon
max_upload_size
id1844290
size7,872,470
Febri hehe (rootfebri)

documentation

README

dioxus-fluent-sysicon

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.

  • Requires Dioxus v0.6+ (uses dioxus-rsx 0.6 under the hood)
  • Ships SVG sources under assets/
  • Icon data is from Microsoft Fluent System Icons

Usage

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

  • The icon! macro expands into rsx! markup; any additional tokens inside the block are forwarded as attributes/props to the generated node.
  • Default size is 16px; pass a class (or width/height) to style the SVG.
  • Icon names map to SVG filenames in assets/ without the .svg extension (see ICON.md).

Icon catalog

See ICON.md for the full list of available icon names and quick tips.

License

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.

Commit count: 0

cargo fmt