Skip to content
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. The package ships its XML documentation file, so IntelliSense and hover tooltips light up as soon as it's installed.

  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 (or hoist it into your app's _Imports.razor) and compose it from its parts. When you vendor components with the CLI instead, the shipped Navius/_Imports.razor already covers the shared infrastructure namespaces (portal, overlays, interop), so you only add a @using for namespaces beyond those.

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