Lucide Yew

Implementation of the Lucide icon library for Yew applications.

Installation

Install the icons from your command line.

# Selective categories (see https://lucide.dev/icons/categories)
cargo add lucide-yew --features accessibility,communication

# All categories
cargo add lucide-yew --features all-icons

Usage

use lucide_yew::Camera;
use yew::prelude::*;

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

Props

NameTypeDefault
sizeusize24
colorAttrValue"currentColor"
fillAttrValue"none"
stroke_widthusize2
absolute_stroke_widthboolfalse
classClasses-
styleOption<AttrValue>-

Icons