Skip to content

ThemeToggle

Component | Source Code

extends Omit<ToggleProps, “onToggle” | “isOn”>

Props Inheritance Hierarchy: Omit<ToggleProps, “onToggle” | “isOn”>

A specialty control for toggling between two theme selections (light and dark).

Can be controlled or uncontrolled. If you intend to control the component, you must provide a mode that’s not undefined and it must be a ThemeMode.


Whether the toggle is disabled.