Skip to content
PREFERENCES · FREE

ThemeToggle

Switch between light and dark themes with one click.

Switch between the light, dark and other themes with one click.

Why it helps

  • Ready toggle
  • Remembers the choice
  • Cycles through themes

Where it fits

  • Headers
  • Settings
  • Docs
ThemeToggle control in a RayCraft page

Example

<ThemeToggle />
<DensityToggle />
<LanguageToggle />

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Included in RayCraft Free. Working examples are in the GitHub repository (MIT); it holds example and demo code, not the library code.

All controls ยท Documentation