Skip to main content

Examples

All runnable samples use .uui.csx views and run on WebKitGTK:

dotnet run --project samples/Hello/Hello.csproj
dotnet run --project samples/Counter/Counter.csproj
dotnet run --project samples/Todo/Todo.csproj
dotnet run --project samples/CsxCard/CsxCard.csproj
  • Hello: minimal CSX + WebKitGTK smoke sample.
  • Counter: CSX view, function component, UseState, CSS-in-C#.
  • Todo: TODO app showcase with state, events, and inline list rendering inside TodoShell, plus CSX shell/rows and CSS module.
  • CsxCard: .uui.csx compiled by the Roslyn Source Generator.

Samples do not use NullRenderHost. They require WebKitGTK 6.0, JavaScriptCoreGTK 6.0, GTK 4, and a working DISPLAY or WAYLAND_DISPLAY.