leptos_icon_gen

Crates.ioleptos_icon_gen
lib.rsleptos_icon_gen
version0.3.0
sourcesrc
created_at2023-11-09 20:10:26.057394
updated_at2023-12-27 13:17:35.371758
descriptionIcon generation macros for Leptos
homepage
repositoryhttps://github.com/johnnynotsolucky/rust_icon_gen
max_upload_size
id1030412
size16,088
Tyrone Tudehope (johnnynotsolucky)

documentation

https://docs.rs/leptos_icon_gen

README

leptos_icon_gen

Icon generation macros for Leptos.

Leptos compatibility

Crate version Compatible Leptos version
0.1.0 0.5

Usage

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"/>
}

Icon sets

Icon Licenses

  • Refer to individual icon set licenses in the list above.
Commit count: 18

cargo fmt