Test suite & live playground
Model the UI as a value. Let the dataflow do the rest.
This page doubles as the library's browser test suite and as a small, interactive tour of WebSharper.UI. Every example below is built with the same reactive primitives that the tests exercise against a real DOM.
Two-way binding
A Var feeds an input; its mapped View feeds the greeting.
Reactive dataflow
Two inputs combine into a single derived view, with a reactive status class.
Keyed collections
ListModel keeps stable nodes while items are added, toggled and removed.
Transitions
An animated style is driven by the same Trans and Anim values used in the tests.
Inputs & lenses
Typed controls edit a nested record through LensAuto, with every change reflected in a preview.
Native popovers
A declarative top-layer popover, no JavaScript required.
Runtime templates
Holes in a hidden DOM template are filled with typed docs and views at runtime.
Dataflow stress test
A Var updated every animation frame measures the cost of pushing changes through views.
Test suite
QUnit runs the F# suite against the real DOM. The tests cover variables, views, list models, serialization, elements, input controls, reactive attributes and runtime templates.