Framework Adapters

How NexusStratum bridges framework-agnostic components to Leptos and Dioxus.

The Adapter Pattern

NexusStratum's primitives and styled components produce RenderOutput — a framework-agnostic description of what to render (tag, classes, ARIA attributes, children). Framework adapters translate this into each framework's native rendering model.

Architecture
stratum-primitives (Component trait)
        |
        +-- stratum-leptos (bridges to Leptos signals + view!)
        |
        +-- stratum-dioxus (bridges to Dioxus signals + rsx!)

What Adapters Do

Supported Frameworks

FrameworkCrateAdapter
Leptos 0.8+stratum-leptosStratumAdapter
Dioxus 0.6+stratum-dioxusDioxusAdapter

Adding a New Framework

To support a new Rust frontend framework (e.g., Sycamore, Yew), create a new adapter crate that:

Leptos Guide Dioxus Guide