mirror of
https://github.com/danbulant/lucide
synced 2026-07-05 03:00:51 +00:00
See https://blog.rust-lang.org/2023/10/26/broken-badges-and-23k-keywords.html for more information.
1.1 KiB
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"]