Heroicons Dioxus
Implementation of the Heroicons icon library for Dioxus applications.
Installation
cargo add heroicons-dioxus
Usage
use dioxus::prelude::*;
use heroicons_dioxus::Camera;
#[component]
fn App() -> Element {
rsx! {
Camera {
color: "red",
size: 48,
}
}
}
Props
Name | Type | Default |
---|---|---|
size | usize | 24 |
color | String | "currentColor" |
fill | String | "none" |
stroke_width | usize | 2 |
absolute_stroke_width | bool | false |