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<String> |
Icon size | "1em" |
| color | Option<String> |
Svg fill color | "currentColor" |
Basic usage examples
use *;
use ;
Custom style example
rsx!