METADATA
=======
Last Updated: 2026-09-17 09:26 UTC
Title: BlazorBlueprint - Icon Packages
Library Version: 4
Namespace: BlazorBlueprint.Icons.Lucide.Components
BlazorBlueprint provides four independent icon packages, each wrapping a
popular open-source SVG icon set as native Blazor components. All icons render
as inline SVG elements with full parameter control over size, color, stroke
width, and CSS classes.
Packages:
BlazorBlueprint.Icons.Lucide 1,753 icons Stroke-based, 24x24
BlazorBlueprint.Icons.Heroicons 1,288 icons 4 variants (Outline, Solid, Mini, Micro)
BlazorBlueprint.Icons.Feather 286 icons Minimalist stroke-based, 24x24
BlazorBlueprint.Icons.FontAwesome 2,066 icons Font Awesome 6 Free, 3 variants (Solid, Regular, Brands)
Each package is independent. Install only the packages you need.
BlazorBlueprint.Components depends on BlazorBlueprint.Icons.Lucide, so Lucide
arrives with it as a transitive package. Heroicons, Feather and Font Awesome
must be installed separately.
================================================================================
AVAILABLE ICON NAMES
================================================================================
Complete lists of every available icon name for each package are provided in
separate files. Refer to these when you need to find or verify an icon name:
icons/lucide.txt All 1,753 Lucide icon names
icons/heroicons.txt All 324 Heroicon base names (with variant availability)
icons/feather.txt All 286 Feather icon names
icons/fontawesome.txt All Font Awesome Free icon names, grouped by variant (1,407 Solid, 164 Regular, 495 Brands)
These files list one icon name per line, exactly as you would pass it to the
Name parameter (e.g., ). Use them to look up
valid icon names before generating code.
================================================================================
INSTALLATION
================================================================================
Install via the .NET CLI:
dotnet add package BlazorBlueprint.Icons.Lucide
dotnet add package BlazorBlueprint.Icons.Heroicons
dotnet add package BlazorBlueprint.Icons.Feather
dotnet add package BlazorBlueprint.Icons.FontAwesome
No service registration is required. Icon packages have no DI dependencies.
================================================================================
NAMESPACE IMPORTS
================================================================================
Add the appropriate namespaces to your _Imports.razor or individual .razor files.
Lucide:
@using BlazorBlueprint.Icons.Lucide.Components
@using BlazorBlueprint.Icons.Lucide.Data @* for LucideIconData *@
Heroicons:
@using BlazorBlueprint.Icons.Heroicons.Components
@using BlazorBlueprint.Icons.Heroicons.Data @* for HeroIconData, HeroIconVariant *@
Feather:
@using BlazorBlueprint.Icons.Feather.Components
@using BlazorBlueprint.Icons.Feather.Data @* for FeatherIconData *@
Font Awesome:
@using BlazorBlueprint.Icons.FontAwesome.Components
@using BlazorBlueprint.Icons.FontAwesome.Data @* for FontAwesomeIconData, FontAwesomeIconVariant *@
================================================================================
LUCIDEICON COMPONENT
================================================================================
Component: LucideIcon
Renders a Lucide icon as an inline SVG. All 1,753 Lucide icons are available.
Icon names are kebab-case strings (e.g., "camera", "arrow-right", "align-left").
Parameters:
Name string [EditorRequired] Icon name, case-insensitive
Size int Icon size in pixels. Default: 24
Color string Stroke color (CSS value). Default: "currentColor"
StrokeWidth double Stroke width. Default: 2.0
Fill string Fill color. Default: "none"
Class string? Additional CSS classes for the SVG element
AriaLabel string? ARIA label for accessibility
[Unmatched] Dictionary? Additional SVG/HTML attributes
The SVG element always includes:
- role="img"
- viewBox="0 0 24 24"
- stroke-linecap="round" and stroke-linejoin="round"
- A base CSS class of "lucide-icon"
When an icon name is not found, a warning fallback is rendered instead.
Basic usage:
================================================================================
HEROICON COMPONENT
================================================================================
Component: HeroIcon
Renders a Heroicon as an inline SVG. Supports 4 variants across 1,288 icons.
Icon names are kebab-case strings (e.g., "academic-cap", "arrow-down",
"adjustments-horizontal").
Variants (HeroIconVariant enum, namespace BlazorBlueprint.Icons.Heroicons.Data):
Outline 24x24, stroke-based (default)
Solid 24x24, filled
Mini 20x20, filled
Micro 16x16, filled
Parameters:
Name string [EditorRequired] Icon name, case-insensitive
Variant HeroIconVariant Icon variant. Default: HeroIconVariant.Outline
Size int? Icon size in pixels. Default: auto based on variant
(Outline/Solid: 24, Mini: 20, Micro: 16)
Color string Icon color (CSS value). Default: "currentColor"
StrokeWidth double? Stroke width (Outline variant only, ignored for others).
Default: 1.5
Class string? Additional CSS classes for the SVG element
AriaLabel string? ARIA label for accessibility
[Unmatched] Dictionary? Additional SVG/HTML attributes
Rendering behavior:
- Outline variant: renders with stroke and fill="none"
- Solid/Mini/Micro variants: renders with fill and no stroke attributes
- viewBox adjusts per variant: "0 0 24 24", "0 0 20 20", or "0 0 16 16"
When an icon name is not found for the requested variant, a warning fallback
is rendered.
Basic usage:
================================================================================
FEATHERICON COMPONENT
================================================================================
Component: FeatherIcon
Renders a Feather icon as an inline SVG. 286 minimalist stroke-based icons.
Icon names are kebab-case strings (e.g., "camera", "check", "chevron-down").
Parameters:
Name string [EditorRequired] Icon name, case-insensitive
Size int Icon size in pixels. Default: 24
Color string Stroke color (CSS value). Default: "currentColor"
StrokeWidth double Stroke width. Default: 2.0
Class string? Additional CSS classes for the SVG element
AriaLabel string? ARIA label for accessibility
[Unmatched] Dictionary? Additional SVG/HTML attributes
The SVG element always includes:
- role="img"
- viewBox="0 0 24 24"
- fill="none" (Feather icons are always stroke-only)
- stroke-linecap="round" and stroke-linejoin="round"
When an icon name is not found, a warning fallback is rendered instead.
Basic usage:
================================================================================
FONTAWESOMEICON COMPONENT
================================================================================
Component: FontAwesomeIcon
Renders a Font Awesome 6 Free icon as an inline SVG. 2,066 icons across 3
variants. Only Font Awesome Free is supported (Pro requires a commercial license
and cannot be redistributed). Icon names are kebab-case strings matching the
official Font Awesome naming (e.g., "house", "magnifying-glass", "github").
Variants (FontAwesomeIconVariant enum, namespace BlazorBlueprint.Icons.FontAwesome.Data):
Solid Filled glyphs — the largest set (1,407 icons) and the default
Regular Outline glyphs — a small curated subset in the Free tier (164 icons)
Brands Third-party logos (495 icons); not all square, aspect ratio preserved
Parameters:
Name string (Required) Icon name, case-insensitive, kebab-case
Variant FontAwesomeIconVariant Icon variant. Default: FontAwesomeIconVariant.Solid
Size int? Icon width in pixels. Default: 16. Height is scaled
proportionally to preserve each icon's aspect ratio.
Color string Icon color (CSS value). Default: "currentColor"
Class string? Additional CSS classes for the SVG element
AriaLabel string? ARIA label for accessibility
[Unmatched] Dictionary? Additional SVG/HTML attributes
Rendering behavior:
- Each icon preserves its intrinsic viewBox, so non-square Brands icons (e.g.
"github", "twitter") render at their correct proportions.
- Width is set from Size; height is scaled to preserve the aspect ratio.
- Icons inherit color from the parent by default (Color="currentColor").
Basic usage:
================================================================================
COMMON PARAMETER COMPARISON
================================================================================
LucideIcon HeroIcon FeatherIcon
-----------------------------------------------------------------------
Name string (req) string (req) string (req)
Size int (24) int? (auto) int (24)
Color string string string
("currentColor") ("currentColor") ("currentColor")
StrokeWidth double (2.0) double? (1.5) double (2.0)
Fill string ("none") (computed) (always "none")
Variant -- HeroIconVariant --
Class string? string? string?
AriaLabel string? string? string?
[Unmatched] yes yes yes
Key differences:
- LucideIcon has an explicit Fill parameter; FeatherIcon is always stroke-only
- HeroIcon has a Variant parameter and auto-sizes based on variant
- HeroIcon StrokeWidth only applies to the Outline variant
- HeroIcon Size is nullable (auto-determined from variant if not set)
FontAwesomeIcon (not shown in the table above) differs from the stroke-based sets:
- Name is required; Variant is FontAwesomeIconVariant (Solid/Regular/Brands, default Solid)
- Size is int? and defaults to 16 (Lucide/Feather default to 24); height scales to
preserve each icon's aspect ratio, so Brands icons are not forced square
- No StrokeWidth or Fill parameters (glyphs are filled paths, not strokes)
- Color, Class, AriaLabel, and [Unmatched] attributes behave the same as the others
================================================================================
ICON DATA CLASSES (PROGRAMMATIC ACCESS)
================================================================================
Each package provides a static data class for programmatic icon access.
LucideIconData (BlazorBlueprint.Icons.Lucide.Data):
string? GetIcon(string name) Get SVG content by name
IEnumerable GetAvailableIcons() Get all icon names
bool IconExists(string name) Check if icon exists
int IconCount Total icon count (property)
HeroIconData (BlazorBlueprint.Icons.Heroicons.Data):
string? GetIcon(string name, HeroIconVariant variant) Get SVG by name+variant
IEnumerable GetAvailableIcons(HeroIconVariant variant) Get names by variant
bool IconExists(string name, HeroIconVariant variant) Check if icon exists
int TotalIconCount Total across all variants (property)
int OutlineIconCount Outline icon count (property)
int SolidIconCount Solid icon count (property)
int MiniIconCount Mini icon count (property)
int MicroIconCount Micro icon count (property)
FeatherIconData (BlazorBlueprint.Icons.Feather.Data):
string? GetIcon(string name) Get SVG content by name
IEnumerable GetAvailableIcons() Get all icon names
bool IconExists(string name) Check if icon exists
int IconCount Total icon count (property)
FontAwesomeIconData (BlazorBlueprint.Icons.FontAwesome.Data):
FontAwesomeIconEntry? GetIcon(string name, FontAwesomeIconVariant variant) Get icon entry by name+variant
IEnumerable GetAvailableIcons(FontAwesomeIconVariant variant) Get names by variant
bool IconExists(string name, FontAwesomeIconVariant variant) Check if icon exists
int TotalIconCount Total across all variants (property)
int SolidIconCount Solid icon count (property)
int RegularIconCount Regular icon count (property)
int BrandsIconCount Brands icon count (property)
(FontAwesomeIconEntry is a record: int Width, int Height, string Body — used to build the viewBox.)
All name lookups are case-insensitive.
================================================================================
USAGE EXAMPLES
================================================================================
--- Inline icon ---
--- Custom size and color ---
--- Using Tailwind utility classes for sizing ---
--- Icon inside a BbButton ---
Open Command Palette
--- Icon inside a BbToggle ---
--- Icon with dynamic color and fill ---
Bookmark
--- Icon in a BbToggleGroup ---
--- Heroicons with different variants ---
--- Heroicons outline with custom stroke width ---
--- Feather icon ---
--- Programmatic icon lookup ---
@if (LucideIconData.IconExists("home"))
{
}
--- Iterating available icons ---
@foreach (var iconName in LucideIconData.GetAvailableIcons().Take(10))
{
}
--- Icon with custom HTML attributes ---
--- Accessibility: icon-only button with ARIA label ---
================================================================================
ICON NAMING CONVENTIONS
================================================================================
All four icon sets use kebab-case names:
- Lucide: "arrow-right", "file-text", "layout-dashboard", "chart-bar"
- Heroicons: "academic-cap", "arrow-down-tray", "magnifying-glass"
- Feather: "arrow-right", "file-text", "check-circle", "chevron-down"
- Font Awesome: "house", "magnifying-glass", "circle-check", "github" (Brands)
Names are always case-insensitive. "Home", "home", and "HOME" all resolve to
the same icon.
Common icon names across packages (same name, different designs):
"home", "search", "heart", "calendar", "camera", "check", "arrow-up",
"arrow-down", "arrow-left", "arrow-right", "bookmark", "bell"
================================================================================
TIPS AND BEST PRACTICES
================================================================================
1. Use Tailwind classes (Class="h-4 w-4") for responsive sizing that matches
your design system, rather than the Size parameter, when working alongside
BlazorBlueprint styled components. Standard classes such as h-4 and w-4 come
from your application's own Tailwind build; blazorblueprint.css only contains
`bb:`-prefixed utilities (see setup.txt).
2. The default Color="currentColor" inherits from the parent element's text
color. This integrates naturally with Tailwind text color utilities
(e.g., a parent with class="text-muted-foreground").
3. For icon-only buttons, always provide an AriaLabel, since the icon has no
text content to name the button.
4. LucideIcon is the most comprehensive set (1,753 icons) and is the icon
package referenced by BlazorBlueprint.Components as a dependency.
5. All icon packages target .NET 10 (net10.0) and work with Blazor Server, WASM,
and Auto render modes.