ThemeToggle
Cycles the system, light and dark themes. Its tooltip says which is on and what a click does. Every toggle on the page stays in step.
ThemeToggle(props: ThemeToggleProps): ElementProps
- alignoptional
TooltipAlign Where its tooltip lines up. Defaults to
end, for a toggle at the right of a header.- classoptional
string
design-system is a Ben Hodgson projectGitHub