Skip to content

Search

ThemeToggle

ComponentTheme Source

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): Element

Props

alignoptionalTooltipAlign

Where its tooltip lines up. Defaults to end, for a toggle at the right of a header.

classoptionalstring

design-system is a Ben Hodgson projectGitHub