BlazorUI.Icons.Feather 1.0.0

Suggested Alternatives

BlazorBlueprint.Icons.Feather

Additional Details

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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlazorUI.Icons.Feather" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorUI.Icons.Feather" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BlazorUI.Icons.Feather" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlazorUI.Icons.Feather --version 1.0.0
                    
#r "nuget: BlazorUI.Icons.Feather, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BlazorUI.Icons.Feather@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlazorUI.Icons.Feather&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BlazorUI.Icons.Feather&version=1.0.0
                    
Install as a Cake Tool

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:

  • activity
  • airplay
  • alert-circle
  • alert-triangle
  • archive
  • bell
  • bookmark
  • calendar
  • camera
  • check
  • check-circle
  • chevron-down
  • chevron-up
  • circle
  • heart
  • home
  • mail
  • settings
  • star
  • trash
  • user
  • x
  • ... 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.

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.


Made with ❤️ by the BlazorUI team

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 1.0.0 is deprecated.