navius

Getting started

Add the headless brain, register its services, mount the outlets, then drop primitives in and style them yourself. Works in any Blazor host: WebAssembly, Server, Blazor Web App, and MAUI Blazor.

  1. 01

    Install the brain

    Reference the Navius.Primitives package, the headless primitives and their JavaScript engine. The engine asset is served automatically from the package's static web assets at _content/Navius.Primitives/navius-interop.js.

  2. 02

    Register the services

    In Program.cs, call AddNavius() to register the portal registry and the toast queue.

  3. 03

    Mount the outlets

    Near your app root, mount a single portal outlet (for overlays that teleport out of clipping ancestors) and, if you use toasts, a manager-driven toast provider + viewport region.

  4. 04

    Bring your own styles

    The brain ships no CSS. Style the primitives however you like (Tailwind utilities, plain CSS, CSS modules) keyed off the data-* contract. See Styling. Prefer a ready-made styled layer? Use zits/ui.

  5. 05

    Use a primitive

    Add a @using for the component's namespace and compose it from its parts.

That's it: browse the components, or read how the engine works.