ThemeToggle
FreeReady-made switches for the Light, Dark, Slate, Slate Dark, RayCraft and RayCraft Dark themes (ThemeToggle goes through them one by one), the comfortable/compact density (DensityToggle) and the en-US/bg-BG language (LanguageToggle). All persist the choice in localStorage.
Example

Parameters
API
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Style | string | Inline style added to the root element. |
Parameter Type Description
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Style | string | Inline style added to the root element. |
Package
ThemeToggle is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Related controls
- DensityToggleA button that switches the whole interface between comfortable and compact density.
- LanguageToggleA button that shows the current language code and switches the interface language.
Send feedbackVersion 1.0.3