dxc-icons

Crates.iodxc-icons
lib.rsdxc-icons
version0.2.0
created_at2025-08-06 15:22:57.607563+00
updated_at2025-10-29 07:35:49.291644+00
descriptionDioxus component library with over 290 exquisite icons
homepagehttps://github.com/efahnjoe/dxc-icons
repositoryhttps://github.com/efahnjoe/dxc-icons
max_upload_size
id1783923
size233,465
Efahn Joe (efahnjoe)

documentation

README

Dioxus Components Icon

Thanks for Element Plus for providing the icons.

Element Plus Dioxus

Preview

Install

Make sure your Cargo.toml includes the Dioxus dependency:

[dependencies]
dioxus = "0.6"
cargo add dxc-icons

Usage

Since 'Box' is a keyword in Rust, please use 'IconBox'.

'Document' is a keyword in Dioxus, please use 'IconDocument'.

For a better experience, it can be used in conjunction with dxc - our UI component library.

API

Name Type Description Default
size Option<String> Icon size "1em"
color Option<String> Svg fill color "currentColor"

Basic usage examples

use dioxus::prelude::*;
use dxc_icons::{Plus, IconBox};

#[component]
fn App() -> Element {
  Div {
    Plus {}
    IconBox {}
    IconDocument {}
  }
}

Custom style example

rsx! {
    Div {
        Plus {
            size: "16px", // The size of the icon: size * size
            color: "black", // The svg fill color
        }
    }
}
Commit count: 0

cargo fmt