Heroicons Yew
Implementation of the Heroicons icon library for Yew applications.
Installation
Install the icons from your command line.
cargo add heroicons-yew
Usage
use heroicons_yew::Camera;
use yew::prelude::*;
#[component]
fn App() -> Html {
html! {
<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 |