RecursiveAI.OneUI 1.0.0

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

RecursiveAI.OneUI

A UI component model for .NET. Components are an HTML template, an optional CSS file and a C# class; a source generator that ships in the package turns each one into create and update code and checks every binding, event, element and CSS property at build time. A second front end builds the same kind of tree from C# calls and adds CSS-model styling, flexbox layout, painting to a display list, input routing, tweens and a kit of themed controls (buttons, text input, dropdown, list, table, tabs, scroll view, slider, dialog).

The package depends only on .NET and RecursiveAI.OneFont. It is NativeAOT- and trim-compatible and uses no reflection.

Markup components

A component is a template, an optional stylesheet and a partial class with the same name:

Counter.html

<button class="btn" on:click="Increment">Clicked {Count} times</button>

Counter.cs

using OneUI.Components;

public partial class Counter
{
    [State]
    public partial int Count { get; set; }

    private void Increment() => Count++;
}

Clicking the button changes Count; the one text node that reads it is the only thing that is rewritten. Unknown names, bad bindings and CSS the engine cannot render are build errors with a stable OUI id: see docs/diagnostics.md for the list and docs/markup.md for the template syntax.

A component does not draw. It writes mutations (create a node, set an attribute, insert, listen) as a change set to a document that implements IChangeSink. This package has the reference document, an in-memory DOM with selector queries, click and key helpers and a readable HTML dump, which is what tests use. The native window backend and the browser backend (WebAssembly, with components registered as custom elements) are provided by RecursiveAI.OneApp.

The C# builder

The other front end is OneUI.Element, a retained tree you build and style in code. UiTree styles it, lays it out, handles input and focus, and produces a DisplayList for a host to paint.

var tree = new UiTree();
tree.SetViewport(640, 360, 1);
var kit = new KitHost(tree);
tree.Root.Add(kit.AttachTo(Ui.Column(
    Ui.Label("Hello"),
    UiKit.Button("Count", () => log("clicked"), "count")).Padding(16).Gap(8)));
var list = tree.Frame(); // the display list: what to paint

Contents

  • OneUI.Components: components, state, the change-set protocol, the reference document (OneUI.Components.Reference).
  • OneUI: Element, Ui, UiTree, styles, layout, display list.
  • OneUI.Kit: UiKit controls, KitHost, theme tokens, text editing, contrast checks.
  • OneUI.Tweens: easing and tweens.

Source and issues: https://github.com/recursive-ai-oss/oneui-csharp. Licensed under MIT OR Apache-2.0.

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.0 0 12/2/2026

See CHANGELOG.md in the repository.