Bootstrap Icons for .NET applications.
- Install
BootstrapIcons.AspNetCorefrom nuget.org
In your Views/_ViewImports.cshtml, add a reference to the included tag helper:
@addTagHelper *, BootstrapIcons.AspNetCoreThe BootstrapIconTagHelper is designed to work with the svg element. For example:
<svg bootstrap-icon="AlarmFill" width="24" height="24" aria-label="Alarms"></svg>This will include the SVG path(s) for the icon inside the SVG element. Font-based icons are not supported. See the Bootstrap Icons Usage docs for more information.
- Install
BootstrapIcons.Wpffrom nuget.org
In your XAML top-level element (Window, Page, etc...) reference the following namespace:
<Window
...
xmlns:bi="https://github.com/helluvamatt/BootstrapIcons.Wpf/"
...
>Then, use the BootstrapIcon block tag:
<bi:BootstrapIcon Icon="AlarmFill" Width="32" Height="32" ForegroundColor="Black" />This project is licensed under the terms of the MIT License.