pub fn Theme(_: ThemeProps) -> ElementExpand description
Installs reusable component tokens and wraps children in a theme scope.
The immutable stylesheet is embedded, not a consumer-relative URL.
The document-owned installer deduplicates styles across independent roots;
unmounting one wrapper does not remove another root’s styles.
The renderer supplies Dioxus’s Document context; missing context reports
a stylesheet-delivery failure on the platform diagnostic channel.
§Examples
use adam_web_ui::components::Theme;
use dioxus::prelude::*;
fn app() -> Element { rsx! { Theme { p { "Content" } } } }§Props
For details, see the props struct definition.
children:Element