DuoBlazorIcons 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DuoBlazorIcons --version 1.0.0                
NuGet\Install-Package DuoBlazorIcons -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="DuoBlazorIcons" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DuoBlazorIcons --version 1.0.0                
#r "nuget: DuoBlazorIcons, 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.
// Install DuoBlazorIcons as a Cake Addin
#addin nuget:?package=DuoBlazorIcons&version=1.0.0

// Install DuoBlazorIcons as a Cake Tool
#tool nuget:?package=DuoBlazorIcons&version=1.0.0                

.NET

DuoBlazorIcons

Duo Blazor Icons is a set of multi-tone icons for Blazor.

Full Icon Set

Installation

Install the package from NuGet:

dotnet add package DuoBlazorIcons

Usage

To use the icons, you can use the Icon component:

@using DuoBlazorIcons.Components

<Icon Name="IconName.AddCircle" />

Or you can use the icon component directly:

@using DuoBlazorIcons.Components.Icons

<IconAddCircle />

Additionally, if you want the icons to be aligned with text, add the following stylesheet to your index.html:

<link href="_content/DuoBlazorIcons/duo-blazor-icons.css" rel="stylesheet" />

...or this small snippet of CSS:

.duo-blazor-icon {
    position: relative;
    top: 0.1em;
}

Development

Then icon components and the IconName enum are not versioned by git since they are purely generated code.

They will be generated when building the DuoBlazorIcons project using MSBuild.

To generate/update the icon components separately, you need to run the DuoBlazorIcons.Generator project:

dotnet run --project DuoBlazorIcons.Generator/DuoBlazorIcons.Generator.csproj

This will generate the IconName enum and the Icon<icon name> components.

Contributing

Contributions are welcome! Please open an issue or a pull request if you have any suggestions or improvements.

New icons should be added to fazdiu/duo-icons first, so open a PR there and then open a PR here to add the icon to the generator.

License

Duo Blazor Icons is licensed under the MIT License.

Attribution

The icons are based on the fazdiu/duo-icons project licensed under the MIT License.

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. 
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.2 109 9/26/2024
1.0.1 82 9/26/2024
1.0.0 87 9/26/2024

# Changelog
## 1.0.0
* Initial release
* Added all SVG icons from [fazdiu/duo-icons](https://github.com/fazdiu/duo-icons)
* Added `Icon` component
* Added generator for the `Icon<icon name>` components and `IconName` enum