BlazorUI.Icons.Feather
1.0.0
This package has been renamed to BlazorBlueprint.Icons.Feather.
Please migrate to the new package for continued updates.
Migration guide: https://blazorblueprintui.com/docs/migration
dotnet add package BlazorUI.Icons.Feather --version 1.0.0
NuGet\Install-Package BlazorUI.Icons.Feather -Version 1.0.0
<PackageReference Include="BlazorUI.Icons.Feather" Version="1.0.0" />
<PackageVersion Include="BlazorUI.Icons.Feather" Version="1.0.0" />
<PackageReference Include="BlazorUI.Icons.Feather" />
paket add BlazorUI.Icons.Feather --version 1.0.0
#r "nuget: BlazorUI.Icons.Feather, 1.0.0"
#:package BlazorUI.Icons.Feather@1.0.0
#addin nuget:?package=BlazorUI.Icons.Feather&version=1.0.0
#tool nuget:?package=BlazorUI.Icons.Feather&version=1.0.0
BlazorUI.Icons.Feather
A comprehensive Feather icon library for Blazor applications, providing 286 beautiful, minimalist SVG icons.
Features
- 286 Icons: Complete Feather icon set
- Minimalist Design: Simple, beautiful stroke-based icons
- React-Style API: Familiar component-based API for React developers
- Fully Accessible: ARIA-compliant with customizable labels
- Tree-Shakeable: Blazor assembly trimming removes unused icons at publish time
- Type-Safe: Full XML documentation and IntelliSense support
- Themeable: Icons inherit color from parent by default, supports CSS variables
- Lightweight: Optimized SVG rendering with minimal overhead
Installation
dotnet add package BlazorUI.Icons.Feather
Basic Usage
Import the Namespace
Add to _Imports.razor:
@using BlazorUI.Icons.Feather.Components
Render an Icon
<FeatherIcon Name="camera" />
Customize Size and Color
<FeatherIcon Name="heart" Size="32" Color="red" />
Use with CSS Variables (Theming)
<FeatherIcon Name="sun" Color="var(--primary)" />
Icon-Only Button (with Accessibility)
<button aria-label="Take Photo">
<FeatherIcon Name="camera" />
</button>
Integration with BlazorUI Button Component
<Button>
<Icon>
<FeatherIcon Name="camera" Size="20" />
</Icon>
Take Photo
</Button>
Component API
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
Name |
string |
(Required) | Icon name (e.g., "camera", "home", "user"). Case-insensitive. |
Size |
int |
24 |
Icon size in pixels |
Color |
string |
"currentColor" |
Icon color (CSS color value, inherits from parent by default) |
StrokeWidth |
double |
2.0 |
SVG stroke width (Feather icons designed with 2px strokes) |
Class |
string? |
null |
Additional CSS classes |
AriaLabel |
string? |
null |
Accessibility label for screen readers |
AdditionalAttributes |
Dictionary<string, object>? |
null |
Any additional SVG attributes |
Examples
Basic Icon:
<FeatherIcon Name="home" />
Large Icon with Custom Color:
<FeatherIcon Name="star" Size="48" Color="#FFD700" />
Icon with Custom Stroke Width:
<FeatherIcon Name="circle" StrokeWidth="1.5" />
Icon with Custom CSS Classes:
<FeatherIcon Name="alert-circle" Class="text-destructive hover:text-destructive/80" />
Accessible Icon-Only Button:
<button>
<FeatherIcon Name="trash" AriaLabel="Delete item" />
</button>
Icon with Data Attributes:
<FeatherIcon Name="settings" data-testid="settings-icon" />
Icon Names
All 286 Feather icons are available. Icon names use kebab-case and match the official Feather icon names:
activityairplayalert-circlealert-trianglearchivebellbookmarkcalendarcameracheckcheck-circlechevron-downchevron-upcirclehearthomemailsettingsstartrashuserx- ... and 260+ more
Browse all icons: feathericons.com
Styling
Default Behavior
Icons inherit color from their parent element by default:
<div style="color: blue;">
<FeatherIcon Name="home" />
</div>
Explicit Color
Override the inherited color:
<FeatherIcon Name="home" Color="red" />
CSS Variables (Theming)
Perfect for theme systems:
<FeatherIcon Name="sun" Color="var(--primary)" />
<FeatherIcon Name="moon" Color="var(--foreground)" />
Tailwind CSS
Use Tailwind utility classes:
<FeatherIcon Name="check" Class="text-green-500 dark:text-green-400" />
Accessibility
Decorative Icons (Next to Text)
Icons next to text are decorative and don't need labels:
<button>
<FeatherIcon Name="camera" />
<span>Take Photo</span>
</button>
Semantic Icons (Icon-Only)
Icon-only elements require AriaLabel:
<button>
<FeatherIcon Name="camera" AriaLabel="Take Photo" />
</button>
Performance
- Bundle Size: ~70 KB for complete icon set (before compression)
- Brotli Compression: Reduces size by ~70% in production
- Assembly Trimming: Unused icons automatically removed at publish time
- Static Dictionary: O(1) icon lookup with minimal memory overhead
Browser Support
Works in all modern browsers that support:
- Blazor Server / WebAssembly / Hybrid
- SVG rendering
- CSS
currentColor
License
This package is MIT licensed.
Feather icons are MIT licensed by Cole Bemis.
Links
- Feather Icons: feathericons.com
- BlazorUI: GitHub Repository
- Issues: Report a Bug
Contributing
Contributions are welcome! Please open an issue or pull request on GitHub.
Made with ❤️ by the BlazorUI team
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.14)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.0.0 | 358 | 11/16/2025 |