Skip to main content

ThemeToggle

Function ThemeToggle 

Source
pub fn ThemeToggle() -> Element
Expand description

Light/dark theme toggle button.

Reads theme configuration from DocsRegistry context and current theme from a Signal<String> context (provided by DocsLayout).

Renders nothing if the registry has no toggle_themes configured.