DuoBlazorIcons 1.0.1
See the version list below for details.
dotnet add package DuoBlazorIcons --version 1.0.1
NuGet\Install-Package DuoBlazorIcons -Version 1.0.1
<PackageReference Include="DuoBlazorIcons" Version="1.0.1" />
paket add DuoBlazorIcons --version 1.0.1
#r "nuget: DuoBlazorIcons, 1.0.1"
// Install DuoBlazorIcons as a Cake Addin #addin nuget:?package=DuoBlazorIcons&version=1.0.1 // Install DuoBlazorIcons as a Cake Tool #tool nuget:?package=DuoBlazorIcons&version=1.0.1
DuoBlazorIcons
Duo Blazor Icons is a set of multi-tone icons for Blazor.
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 | 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. |
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
# Changelog
## 1.0.1
* No functional changes; release workflow test
## 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