Skip to main content

Crate lepticons

Crate lepticons 

Source
Expand description

Lucide icons for Leptos applications.

Provides Lucide icons as a Leptos component. Icons are grouped into 42 category features for selective compilation.

§Example

use lepticons::{Icon, LucideGlyph};
use leptos::prelude::*;

#[component]
fn App() -> impl IntoView {
    view! { <Icon glyph=LucideGlyph::Activity /> }
}

Structs§

CustomIconProps
Props for the CustomIcon component.
IconProps
Props for the Icon component.

Enums§

LucideGlyph

Constants§

DEFAULT_FILL
Default SVG fill color.
DEFAULT_SIZE
Default icon size in pixels.
DEFAULT_STROKE
Default SVG stroke color.
DEFAULT_STROKE_WIDTH
Default SVG stroke width.
VERSION
Version of the lepticons crate, taken from Cargo.toml at build time.

Traits§

Glyph
Trait for types that provide SVG content for rendering.

Functions§

CustomIcon
Renders an arbitrary inline SVG using the same prop API as Icon.
Icon
Renders an SVG icon.