Dorn.WebUI.Primitives 1.0.5

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

Dorn.WebUI.Primitives

Framework-agnostic Blazor UI primitives shared by Dorn's Blazor templates: class merging (Cn/ClassGroups), roving-focus and typeahead state, UiId, UiValueComponent/UiInputBase, lazy JS-module interop wrappers, theme state, and toast queue state.

This package contains no .razor components. Components stay copy-owned per template — see ADR 0022.

JS interop path contract

ModalInterop, AnchorInterop, and DismissInterop each wrap a JS module via UiInteropModule, which resolves its module with a dynamic import() relative to the consuming app's document.baseURI. This is a runtime contract with no compile-time enforcement — the compiler cannot verify a consumer ships the matching files.

A consuming app MUST keep its JS modules at exactly these paths, relative to wwwroot:

Interop wrapper Required module path
ModalInterop wwwroot/js/ui/ui-modal.js
AnchorInterop wwwroot/js/ui/ui-anchor.js
DismissInterop wwwroot/js/ui/ui-dismiss.js

If a module is missing or moved, the dynamic import() fails at runtime with a browser-level module resolution error, not a build-time error.

Consumption

Reference the package and use the primitives directly:

<PackageReference Include="Dorn.WebUI.Primitives" />
using Dorn.WebUI.Primitives;
using Dorn.WebUI.Primitives.Interop;
using Dorn.WebUI.Primitives.Theme;
using Dorn.WebUI.Primitives.Toast;
Product 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. 
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.5 204 8/22/2026
1.0.4 110 8/22/2026
1.0.3 117 8/21/2026
1.0.2 132 8/17/2026