Skip to main content

ThemeProvider

Function ThemeProvider 

Source
pub fn ThemeProvider(props: ThemeProviderProps) -> impl IntoView
Expand description

Provides the active-theme signal and theme registry to children, injects the registered themes’ CSS, and keeps the document’s data-theme in sync with the active theme. Wrap your app in this to enable theming.

§Required Props