Htmx.Components 1.0.6

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

Htmx.Components

NuGet Documentation License: MIT

A comprehensive ASP.NET Core library for building interactive web applications with server-side rendering and HTMX integration. Get dynamic UIs with minimal JavaScript through reusable components, state management, and built-in authorization.

✨ What You Get

  • 🚀 Ready-to-use components: Tables, navigation, auth status, forms
  • 🔧 HTMX integration: Out-of-band updates, multi-swap responses, page state
  • 🛡️ Authorization system: Resource-based permissions with ASP.NET Core integration
  • 📱 Responsive design: Built for DaisyUI/Tailwind CSS
  • Automatic partial updates: Smart filters handle HTMX updates behind the scenes

🚀 Quick Example

// Program.cs - Minimal setup
builder.Services.AddHtmxComponents();
builder.Services.AddControllersWithViews()
    .AddHtmxComponentsApplicationPart();

app.UseHtmxPageState();
app.UseAuthentication();
app.UseAuthorization();
// Controllers - Attribute-based navigation and tables
[NavActionGroup(DisplayName = "Admin")]
public class AdminController : Controller
{
    [NavAction(DisplayName = "Users", Icon = "fas fa-users")]
    public async Task<IActionResult> Users()
    {
        var tableModel = await _modelHandler.BuildTableModelAsync();
        // Note that we are returning an ObjectResult here rather than a ViewResult.
        // Htmx.Components makes use of result filters and action context to determine whether to return
        // a ViewResult or a htmx-specific MultiSwapViewResult. For htmx requests, filters determine
        // what partial views and models go into building the response.
        return Ok(tableModel);
    }
}

@await Component.InvokeAsync("NavBar")
@await Component.InvokeAsync("AuthStatus")
@await Component.InvokeAsync("Table", Model)

<htmx-scripts></htmx-scripts> 
<htmx-page-state></htmx-page-state> 

Result: Dynamic navigation, interactive tables, auth integration - all with server-side rendering.

📖 Documentation

Guide Description
🚀 Getting Started Installation, setup, and first working example
👤 User Guide Usage patterns, components, and examples
🔧 Developer Guide Architecture, extension points, and customization
📚 API Reference Complete API documentation

💻 Requirements

  • .NET 8.0+
  • ASP.NET Core
  • HTMX 2.0+

🤝 Contributing

Contributions welcome! See our Contributing Guide for development setup and guidelines.

📄 License

MIT License - see LICENSE file for details.

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 was computed.  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

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.6 79 7/11/2025
1.0.5 75 7/11/2025
1.0.4 71 7/11/2025
1.0.3 147 7/10/2025