oneuiDocs
oneui docs
Getting started, the markup template syntax, the change-set protocol between components and documents, build diagnostics and the CSS a component stylesheet accepts. These docs are for OneUI 1.0.0, read at the v1.0.0 tag (4223040).
Start
Getting startedWrite a markup component, mount it on the in-memory reference document, click it and see what changed. Then build a small screen with the C# builder and print the display list it paints. This guide was run on RecursiveAI.OneUI 1.0.0 from NuGet, in a .NET 10 console app on…OverviewA UI component model for .NET: HTML and CSS markup components checked at build time by a source generator, and a C# builder with styling, flexbox layout, display-list painting, input routing and a kit of themed controls.
Markup components
Markup componentsA component is a template, an optional stylesheet and a C# class with the same name:DiagnosticsThe markup compiler reports every problem with a stable id, at the line and column in the .html or .css file. A template that has any error still produces a stub class, so the only errors you see are the ones listed here.CSS supportA component stylesheet, a style:prop directive and a static style="…" attribute are checked at build time against a table of what the renderer draws: the properties onerender computes plus the SVG presentation properties its SVG renderer takes from the page cascade (219…Change setsThe seam between components and whatever shows them. A UiContext collects the mutations that components make and hands them to an IChangeSink as one ChangeSet per batch; the sink is a document: the reference document in this package, and the native and browser backends in…