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
Name | Type | Default |
---|---|---|
size | Signal<usize> | 24 |
color | Signal<String> | "currentColor" |
fill | Signal<String> | "none" |
stroke_width | Signal<usize> | 2 |
absolute_stroke_width | Signal<bool> | false |