Blazor
Use this section when DrawnUI is running inside a Blazor app.
DrawnUI for Blazor currently supports two runtime models:
DrawnUi.Blazor.Wasmfor browser-side rendering withCanvasDrawnUi.Blazor.Serverfor server-rendered DrawnUI surfaces that also useCanvas
DrawnUi.Blazor.Core is shared implementation infrastructure. It is not the normal package you install directly.
Runtime summary
| Hosting Model | Primary package | Rendering happens | Best fit | Demo |
|---|---|---|---|---|
| Blazor WebAssembly | DrawnUi.Blazor.Wasm |
In the browser inside the Canvas component |
Animation-heavy, gesture-heavy, or fully drawn pages | Open Demo |
| Blazor Server | DrawnUi.Blazor.Server |
On the server, delivered as image frames through the Canvas component |
Event-driven widgets, dashboards, mixed Razor + DrawnUI pages | Open Demo |
| Blazor Hybrid | DrawnUi.Blazor.Server in host, DrawnUi.Blazor.Wasm in .Client |
Different per component | Apps that need one DrawnUI surface to stay local and another to stay server-owned | Open Demo |