2024-01-03 20:52:56 +08:00
|
|
|
# Icon
|
|
|
|
|
|
|
|
```rust demo
|
|
|
|
view! {
|
|
|
|
<Space>
|
2024-01-26 23:10:17 +09:00
|
|
|
<Icon icon=icondata::AiCloseOutlined/>
|
|
|
|
<Icon icon=icondata::AiCheckOutlined/>
|
2024-01-03 20:52:56 +08:00
|
|
|
</Space>
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Icon Props
|
|
|
|
|
|
|
|
| Name | Type | Default | Desciption |
|
|
|
|
| ------ | ----------------------------- | -------------------- | ----------------------- |
|
|
|
|
| class | `Option<MaybeSignal<String>>` | `Default::default()` | HTML class attribute. |
|
|
|
|
| style | `Option<MaybeSignal<String>>` | `Default::default()` | HTML style attribute. |
|
|
|
|
| icon | `MaybeSignal<Icon>` | | The icon to show. |
|
|
|
|
| width | `Option<MaybeSignal<String>>` | `1em` | The width of the icon. |
|
|
|
|
| height | `Option<MaybeSignal<String>>` | `1em` | The height of the icon. |
|