Skip to main content

Module context

Module context 

Source
Expand description

Theme context for Dioxus

Provides a context provider and hooks for accessing and modifying the theme throughout the component tree.

Re-exports§

pub use ThemeProvider_completions::Component::ThemeProvider;
pub use ThemeToggle_completions::Component::ThemeToggle;
pub use ThemeSelector_completions::Component::ThemeSelector;

Structs§

ThemeContext
Theme context providing access to current theme and theme switching
ThemeProviderProps
Properties for the ThemeProvider component.

Functions§

ThemeProvider
Theme provider component
ThemeSelector
Theme selector dropdown component
ThemeToggle
Theme toggle button component
use_style
Hook for computing memoized styles based on theme
use_theme
Hook to access the theme context