RayCraftDocs
v1.0.3 raycraft.dev
On this page

ThemeToggle

Free

Ready-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

ThemeToggle control

Parameters

API

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
StylestringInline style added to the root element.

Parameter Type Description

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
StylestringInline style added to the root element.

Package

ThemeToggle is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.