Dioxus Components Icon
Thanks for Element Plus for providing the icons.
Preview
Install
Make sure your Cargo.toml includes the Dioxus dependency:
[]
= "0.6"
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.
-
Github: https://github.com/efahnjoe/dxc
-
Crate: https://crates.io/crates/dxc
API
| Name | Type | Description | Default |
|---|---|---|---|
| size | Option<&'static str> |
Icon size | "1rem" |
| color | Option<&'static str> |
Svg fill color | "currentColor" |
Basic Usage Examples
use *;
use ;
Custom Style Example
rsx!
Running the Examples
Make sure you have dioxus installed globally.