| Crates.io | leptos_icon_gen |
| lib.rs | leptos_icon_gen |
| version | 0.3.0 |
| created_at | 2023-11-09 20:10:26.057394+00 |
| updated_at | 2023-12-27 13:17:35.371758+00 |
| description | Icon generation macros for Leptos |
| homepage | |
| repository | https://github.com/johnnynotsolucky/rust_icon_gen |
| max_upload_size | |
| id | 1030412 |
| size | 16,088 |
Icon generation macros for Leptos.
| Crate version | Compatible Leptos version |
|---|---|
| 0.1.0 | 0.5 |
use leptos::*;
use leptos_lucide::{icon_component, icon_components};
icon_component!(MenuIcon(feather => Menu));
// icon_component!(pub MenuIcon(feather => Menu));
// icon_component!(pub(crate) MenuIcon(feather => Menu));
icon_components! {
pub HomeIcon(feather => Home),
pub AtSignIcon(lucide => AtSign),
pub SquareAsteriskIcon(lucide => SquareAsterisk),
pub MonitorIcon(lucide => Monitor),
pub UserCogIcon(lucide => UserCog),
pub UserIcon(lucide => User),
pub LogOutIcon(lucide => LogOut),
}
In your view! macros:
view! {
<HomeIcon class="my-class" size="24px" fill="currentColor"/>
}