Crates.io | yew-octicons |
lib.rs | yew-octicons |
version | 0.4.0 |
source | src |
created_at | 2020-07-14 07:19:28.685517 |
updated_at | 2023-02-20 04:40:13.983026 |
description | Easy support for Octicons in yew |
homepage | |
repository | https://github.com/io12/yew-octicons |
max_upload_size | |
id | 264937 |
size | 2,309,794 |
yew-octicons
An easy interface for using Octicons in yew projects.
use yew::html;
use yew_octicons::Icon;
use yew_octicons::IconKind;
let code = html! {
<span>
{ Icon::new(IconKind::Alert) }
</span>
};
For a more complex example, see examples/icon-sizing.