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
<PackageReference Include="RecursiveAI.OneUI" Version="1.0.0" />
<PackageVersion Include="RecursiveAI.OneUI" Version="1.0.0" />
<PackageReference Include="RecursiveAI.OneUI" />
paket add RecursiveAI.OneUI --version 1.0.0
#r "nuget: RecursiveAI.OneUI, 1.0.0"
#:package RecursiveAI.OneUI@1.0.0
#addin nuget:?package=RecursiveAI.OneUI&version=1.0.0
#tool nuget:?package=RecursiveAI.OneUI&version=1.0.0
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:UiKitcontrols,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 | Versions 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. |
-
net10.0
- RecursiveAI.OneFont (>= 1.4.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on RecursiveAI.OneUI:
| Package | Downloads |
|---|---|
|
RecursiveAI.OneApp
Desktop app framework for .NET with an HTML and CSS UI: markup components or HTML pages laid out and painted by OneRender, drawn on the GPU in a native window, redrawn only when something changes. Multiple windows, menus, tray, notifications, dialogs, accessibility bridges and a local harness for driving apps in tests. |
|
|
RecursiveAI.OneApp.Browser
Runs OneUI components in the browser on browser-wasm: each top-level component becomes a custom element, and a small JavaScript module applies the component model's change sets to the real DOM and sends DOM events back. |
|
|
RecursiveAI.OneApp.Kit
The default component kit for OneApp: buttons, inputs, checkboxes, switches, cards, badges, separators, avatars, tabs, dialogs, popovers, menus, tooltips, toasts, selects, tables and scroll areas as OneUI markup components, themed with shadcn/ui's design tokens. Runs natively and in the browser. |
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.