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.
Properties
Section titled “Properties”defaultIsOn?: boolean
Section titled “defaultIsOn?: boolean”disabled?: boolean
Section titled “disabled?: boolean”Whether the toggle is disabled.