TechGems.StaticComponents 1.3.0-beta

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

Static Components

Static Components is a minimalistic ASP.NET Core library that allows you to write UI components while maintaining full compatibility with Razor Pages and MVC. With this library you can create your own static components, which makes it synergize perfectly with AlpineJS, HTMX, and the "low-JS" approach to building web applications.

How it works

A component consists of two files: a C# code-behind class that inherits from StaticComponent, and a Razor view (.cshtml) that serves as its template. The class is automatically available as a tag helper in your Razor pages.

// ~/Pages/Components/HelloWorldComponent.cshtml.cs

using Microsoft.AspNetCore.Razor.TagHelpers;
using TechGems.StaticComponents;

namespace Sample.Views.Components;

public class HelloWorldComponent : StaticComponent
{
    public HelloWorldComponent()
    {
    }

    public string GreetMessage { get; set; }
}


@using Sample.Views.Components;
@model HelloWorldComponent

<div>Hello world! @Model.GreetMessage</div>

There are more use cases and configurations you can set with Static Components. To see more, go to our documentation.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 is compatible.  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 (1)

Showing the top 1 NuGet packages that depend on TechGems.StaticComponents:

Package Downloads
TechGems.PinesUI

An ASP.NET Core component library built on Pines UI, using AlpineJS, TailwindCSS, and Static Components.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0-beta 84 5/25/2026
1.2.0 152 3/25/2026
1.2.0-beta 103 3/25/2026
1.1.1 133 3/12/2026
1.1.0 107 3/9/2026
1.1.0-alpha 108 2/18/2026
1.0.0 121 2/11/2026

- Add Static Headless Button component with support for disabled attribute and validation of the type attribute.
- Add Static Headless Input component with support for various input types, validation of the type attribute, and handling of the disabled state.
- Added stubs for unit testing basic functionality of Static Headless components.