1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Single Icon component using registry pattern
//!
//! This module provides a unified Icon component that replaces 1,636 individual
//! icon components with a single registry-based implementation.
use *;
use get_icon_elements;
use IconType;
use SvgIcon;
/// Single Icon component using registry lookup (Dioxus pattern for Leptos)
///
/// This component replaces all individual icon components with a unified
/// registry-based implementation for better build performance.
///
/// # Example
/// ```rust
/// use icons::leptos::{Icon, IconType};
/// use leptos::prelude::*;
///
/// fn example() -> impl IntoView {
/// view! {
/// <Icon icon=IconType::Activity class="w-6 h-6" />
/// <Icon icon=IconType::ArrowRight class="text-blue-500" />
/// }
/// }
/// ```