lucide/book/src/frameworks/yew.md

1.1 KiB

Lucide Yew

Implementation of the Lucide icon library for Yew applications.

Installation

Install the icons from your command line.

cargo add lucide-yew

Usage

use lucide_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

Icons

package = "lucide-yew-book"
features = ["icons"]
files = ["src/icons.rs"]