Huskui.Avalonia 1.1.3

dotnet add package Huskui.Avalonia --version 1.1.3
                    
NuGet\Install-Package Huskui.Avalonia -Version 1.1.3
                    
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="Huskui.Avalonia" Version="1.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Huskui.Avalonia" Version="1.1.3" />
                    
Directory.Packages.props
<PackageReference Include="Huskui.Avalonia" />
                    
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 Huskui.Avalonia --version 1.1.3
                    
#r "nuget: Huskui.Avalonia, 1.1.3"
                    
#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 Huskui.Avalonia@1.1.3
                    
#: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=Huskui.Avalonia&version=1.1.3
                    
Install as a Cake Addin
#tool nuget:?package=Huskui.Avalonia&version=1.1.3
                    
Install as a Cake Tool

Huskui.Avalonia

<div align="center">

A modern, elegant UI component library for Avalonia UI, designed for beautiful cross-platform desktop applications.

Inspired by ParkUI and built with the Radix Colors palette.

NuGet NuGet Downloads Avalonia .NET License

</div>

Screenshot

Compatibility

  • NuGet package: Huskui.Avalonia
  • Target frameworks: net8.0, net10.0
  • Avalonia requirement: 12.0.x
  • License: MIT

Features

  • Rich Component Library: Includes a wide range of UI components like AppWindow, Card, InfoBar, Tag, IconLabel, and more
  • Consistent Design Language: All components follow a cohesive design system with shared colors, animations, and behaviors
  • Theming Support: Built-in support for light and dark themes
  • Fluent Icons Integration: Uses FluentIcons.Avalonia for consistent iconography
  • Modern UI Elements: Includes modern UI patterns like overlays, notifications, and dialogs
  • Customizable: Easily customize the appearance of components through XAML styles and themes

Components

Huskui.Avalonia includes the following components:

  • AppWindow: Enhanced window with a built-in AppSurface for overlays, floating panels, and notifications
  • Card: Container for grouping related content with consistent styling
  • InfoBar: Informational message bars with different severity levels
  • Tag: Compact labels for categorization and metadata
  • IconLabel: Combined icon and text label with FluentIcons integration
  • Frame: Navigation container with transition animations
  • HighlightBlock: Text highlighting for code snippets and keyboard shortcuts
  • AppSurface: Root container for the entire overlay and floating-layer system
  • OverlayHost and Dialogs/Modals/Sidebars/Toasts: Shared host for modal overlay controls
  • GrowlHost and GrowlItem: Dedicated non-modal host for transient notification feedback
  • DrawerHost and Drawer: Dedicated non-modal host for draggable and resizable drawer panels
  • SkeletonContainer: Loading placeholder for content
  • BusyContainer: Container with loading state management
  • LazyContainer: Component for deferred loading of content
  • And many more...

Extensions

Huskui.Avalonia offers optional extension libraries that extend the core functionality:

Package Description
Huskui.Avalonia.Code Syntax-highlighted code viewer powered by TextMate grammars
Huskui.Avalonia.Markdown Markdown-to-native-Avalonia rendering powered by Markdig
Huskui.Avalonia.Mvvm MVVM lifecycle helpers — decouple your ViewModels from UI controls

If you were using IPageModel and Page.Model for ViewModel lifecycle management, this API has been removed in 1.0.0. Please refer to the Huskui.Avalonia.Mvvm README for the new IViewModel + ViewModelAttachableMixin approach.

Explore all components and their features in the interactive Gallery application included in this repository. The Gallery provides live examples, interactive controls, and comprehensive documentation for each component.

To run the Gallery:

dotnet run --project src/Huskui.Gallery

The Gallery application and this README documentation were created entirely by AI to showcase the Huskui.Avalonia library. However, the core Huskui.Avalonia control library itself was lovingly crafted by humans (you can tell because there are virtually no comments in the library code 😅). The library is production-ready and battle-tested, so please feel confident using it in your projects!

Documentation

This project changes frequently, and with limited maintainer bandwidth, we are currently unable to create and continuously maintain full documentation for every control.

If you need help understanding or using specific controls, AI-assisted development can help you get productive faster.

AI-assisted workflow

  1. Download or clone the source code.

  2. Use one of the following approaches:

    • Ask Claude:

      Study this repository and explain the difference between Sidebar and Drawer controls, and how to use them.
      

If you are a Z.AI Coding Plan user, use the zread.ai official MCP to inspect the repository, read source files, and ask targeted questions about component usage and implementation details.

Helpful prompt ideas:

  • Explain what this control is for and when to use it.
  • Compare two similar controls and highlight their differences.
  • Show a minimal usage example for a specific control.
  • Trace which themes, styles, and supporting classes a control depends on.
  • Summarize the public API of a control from the source code.

Getting Started

Prerequisites

  • .NET 8.0 or 10.0
  • Avalonia UI 12.0.x

Installation

dotnet add package Huskui.Avalonia

Basic Usage

  1. Add the Huskui.Avalonia namespace to your XAML:
<Application xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:husk="https://github.com/d3ara1n/Huskui.Avalonia"
             x:Class="YourApp.App">
    <Application.Styles>
        <FluentTheme />
        <husk:HuskuiTheme Accent="Lime" />

        
        <StyleINclude Source="avares://Huskui.Avalonia/Themes/Addons.NoAutoScrollToSelectedItem.axaml" />
        <StyleINclude Source="avares://Huskui.Avalonia/Themes/Addons.InlineUIContainerAlignment.axaml" />
    </Application.Styles>
</Application>
  1. Use Huskui components in your views:
<husk:AppWindow xmlns="https://github.com/avaloniaui"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:husk="https://github.com/d3ara1n/Huskui.Avalonia"
                x:Class="YourApp.MainWindow"
                Title="Your App">
    <Grid RowDefinitions="Auto,*" Margin="24">
        <husk:Card Grid.Row="0" Margin="0,0,0,12">
            <husk:InfoBar Header="Welcome" Content="This is a sample application using Huskui.Avalonia" />
        </husk:Card>

        <StackPanel Grid.Row="1" Spacing="12">
            <husk:IconLabel Icon="Home" Text="Home" />

            <Button Content="Standard Button" />
            <Button Classes="Primary" Content="Primary Button" />
            <Button Classes="Success" Content="Success Button" />

            <husk:Tag Content="Sample Tag" />
        </StackPanel>
    </Grid>
</husk:AppWindow>

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

  1. Clone the repository
  2. Restore tools: dotnet tool restore
  3. Open in VS Code and install recommended extensions when prompted

XAML files are auto-formatted on save via XAML Styler.

Please ensure your XAML is formatted before submitting a PR.

License

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

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Huskui.Avalonia:

Package Downloads
Huskui.Avalonia.Code

Syntax-highlighted code viewer extension for Huskui.Avalonia, powered by TextMate grammars.

Huskui.Avalonia.Markdown

Markdown rendering extension for Huskui.Avalonia, converting Markdown text to native Avalonia controls using Markdig.

Huskui.Avalonia.Mvvm

MVVM integration helpers for Huskui.Avalonia.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.3 49 5/21/2026
1.1.2 233 5/7/2026
1.1.1 152 5/5/2026
1.1.0 147 5/3/2026
1.0.1 283 4/22/2026
0.16.1 146 4/17/2026
0.16.0 120 4/16/2026
0.15.0 140 4/13/2026
0.14.2 132 4/9/2026
0.14.1 121 4/8/2026
0.14.0 130 4/2/2026
0.13.0 111 3/30/2026
0.12.1 114 3/29/2026
0.12.0 111 3/26/2026
0.11.0 117 3/21/2026
0.10.4 134 3/16/2026
0.10.3 412 2/15/2026
0.10.2 153 1/10/2026
Loading failed

# Changelog

All notable changes to this project will be documented in this file.

## [1.1.3] - 2026-05-18

### 🚀 Features

- *(Control)* Add .Clearable and .Multiline to TextBox

### 🐛 Bug Fixes

- *(Control)* Fix GrowlItem cts disposal

<!-- generated by git-cliff -->