Tabler.Avalonia
0.2.1
dotnet add package Tabler.Avalonia --version 0.2.1
NuGet\Install-Package Tabler.Avalonia -Version 0.2.1
<PackageReference Include="Tabler.Avalonia" Version="0.2.1" />
<PackageVersion Include="Tabler.Avalonia" Version="0.2.1" />
<PackageReference Include="Tabler.Avalonia" />
paket add Tabler.Avalonia --version 0.2.1
#r "nuget: Tabler.Avalonia, 0.2.1"
#:package Tabler.Avalonia@0.2.1
#addin nuget:?package=Tabler.Avalonia&version=0.2.1
#tool nuget:?package=Tabler.Avalonia&version=0.2.1
<p align="center"> <img src="https://raw.githubusercontent.com/dme-compunet/Tabler.Avalonia/master/assets/logo.png" width="96" alt="Tabler logo" /> </p>
<h1 align="center">Tabler.Avalonia</h1>
<p align="center"> <a href="https://tabler.io/icons">Tabler Icons</a> for <a href="https://avaloniaui.net">AvaloniaUI</a>: 6,000+ outline and filled icons. </p>
<p align="center"> <a href="https://www.nuget.org/packages/Tabler.Avalonia"><img src="https://img.shields.io/nuget/v/Tabler.Avalonia?logo=nuget" alt="NuGet" /></a> <a href="https://github.com/dme-compunet/Tabler.Avalonia/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/dme-compunet/Tabler.Avalonia/ci.yml?branch=master&label=CI" alt="CI" /></a> <a href="https://github.com/dme-compunet/Tabler.Avalonia/blob/master/LICENSE"><img src="https://img.shields.io/github/license/dme-compunet/Tabler.Avalonia" alt="License" /></a> </p>
Features
- No setup: no styles to include and no
xmlnsto declare. - Compact: the whole set is embedded as ~0.4 MB of compressed data. Icons are decoded on first use.
- Outline and filled variants, including outline icons with filled details.
- Always up to date: a weekly job picks up new Tabler Icons releases and publishes a new version.
- Stable enum values: an icon keeps its numeric value across versions (see Versioning).
- Trimming and NativeAOT compatible.
Installation
dotnet add package Tabler.Avalonia
Usage
The TablerIcon control
<TablerIcon Kind="Home" />
<TablerIcon Kind="Home" Size="32" StrokeWidth="1.5" />
<TablerIcon Kind="HomeFilled" Foreground="Red" />
Size defaults to 24 and StrokeWidth to 1.8. Foreground is inherited, like text.
Right-to-left layouts
Icons are not mirrored when FlowDirection is RightToLeft. Most icons should look the same in any
language. Set IsFlippable on directional icons, such as arrows, that should follow the layout direction:
<TablerIcon Kind="ArrowRight" IsFlippable="True" />
<Button Content="{TablerIcon ChevronLeft, IsFlippable=True}" />
The markup extension
<Button Content="{TablerIcon Search}" />
<Button Content="{TablerIcon Search, 20}" />
<Button Content="{TablerIcon Kind=Search, Size=20, StrokeWidth=1.5}" />
Names
Outline icons use the Tabler name in PascalCase (arrow-left → ArrowLeft). Filled icons add a
Filled suffix (home filled → HomeFilled). Browse all icons at tabler.io/icons
or in the gallery app attached to each release.
Metadata and raw data
var meta = TablerIconKind.Home.GetMetadata(); // Name, Variant, Category, Tags
var data = TablerIconKind.Home.GetData(); // raw stroke / fill path data (24×24)
Versioning
Versions follow SemVer, with TablerIconKind as the public API:
| Change in Tabler Icons | Version bump |
|---|---|
| Icons removed or renamed | major (minor while 0.x) |
| Icons added | minor |
| Drawings or search tags changed only | patch |
Enum values are assigned once and never reused. Code compiled against an older version (for example a library you depend on) keeps showing the same icons after an update. If an icon was removed, its old value renders nothing instead of a different icon.
License
MIT. The icons are from Tabler Icons, MIT © Paweł Kuna (see THIRD-PARTY-NOTICES.md).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Avalonia (>= 11.3.17)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.