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 Leptos

Implementation of the Heroicons icon library for Leptos applications.

Installation

Install the icons from your command line.

cargo add heroicons-leptos

Usage

use leptos::prelude::*;
use heroicons_leptos::Camera;

#[component]
fn App() -> impl IntoView {
    view! {
        <Camera color="red" size=48 />
    }
}

Props

NameTypeDefault
sizeSignal<usize>24
colorSignal<String>"currentColor"
fillSignal<String>"none"
stroke_widthSignal<usize>2
absolute_stroke_widthSignal<bool>false

Icons