Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

NameTypeDefault
sizeusize24
colorString"currentColor"
fillString"none"
stroke_widthusize2
absolute_stroke_widthboolfalse

Icons