Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.81 KB

README.md

File metadata and controls

62 lines (48 loc) · 1.81 KB

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.