dioxus-icons 0.0.1

Lucide icons for Dioxus, one component per icon.
Documentation

dioxus-icons

Crates.io Downloads docs.rs Lucide Dioxus

Lucide icons for Dioxus, generated as one component per icon.

cargo add dioxus-icons
use dioxus::prelude::*;
use dioxus_icons::lucide::Trash;

fn DeleteButton() -> Element {
    rsx! {
        button {
            Trash { size: 16 }
            "Delete"
        }
    }
}

Dioxus Compatibility

dioxus-icons supports Dioxus 0.7.x starting at 0.7.7 (>=0.7.7, <0.8.0). The library enables Dioxus html and macro for RSX/SVG components. Choose renderer features such as web, desktop, mobile, server, or fullstack in your application crate.

Regenerate Icons

cargo run -p dioxus-icons-codegen

Generated Rust sources are committed under crates/dioxus-icons/src/generated/. The generator uses the pinned Lucide release and related-icon sidecar under crates/dioxus-icons-codegen/data/.

When the Lucide version changes, regenerate the related-icon sidecar before running the Rust generator:

python3 crates/dioxus-icons-codegen/scripts/generate_related_icons.py \
  --icons-dir vendor/lucide-1.14.0/icons \
  --output crates/dioxus-icons-codegen/data/lucide-related-siglip2-base-patch16-224.json \
  --icon-set-version 1.14.0
cargo run -p dioxus-icons-codegen

The SigLIP2 sidecar script requires rsvg-convert, torch, transformers, and Pillow. Generated output is deterministic; regenerate after codegen input changes and review the generated diff.

Examples

Examples live under crates/dioxus-icons/examples/.

cargo build -p dioxus-icons --examples
cargo run -p dioxus-icons --example basic

Licensing

The crate code is MIT licensed under LICENSE. Generated icon data comes from Lucide and is covered by LICENSE-LUCIDE, which includes the upstream ISC notice and the Feather-derived MIT icon notice. The published crate therefore uses the SPDX expression MIT AND ISC.