Skip to main content

Module icon

Module icon 

Source
Expand description

Centralized SVG icon component system.

Provides a unified icon component with 30+ variants for consistent iconography across the application. All icons are inline SVGs (24x24 viewBox, stroke-based) for crisp rendering at any size.

§Usage

use logicaffeine_web::ui::components::icon::{Icon, IconVariant, IconSize};

rsx! {
    Icon { variant: IconVariant::Book, size: IconSize::Medium }
    Icon { variant: IconVariant::Fire, size: IconSize::Large, class: "text-orange" }
}

Re-exports§

pub use Icon_completions::Component::Icon;

Structs§

IconProps
Properties for the Icon component.

Enums§

IconSize
Icon size variants.
IconVariant
All available icon variants.

Functions§

Icon
SVG icon component with configurable size and styling.