Theme toggle component in the Microsoft Graph Toolkit
11/07/2024
The theme toggle component allows the user to set or change the document theme from light to dark using a toggle.
A user is able to use the theme toggle component to set the default theme to light or dark. The user can then toggle these modes using a toggle switch.
Example
The following example shows how the theme toggle sets the light or dark mode based on the user's preference.
Microsoft Graph Toolkit components are flexible for customization. You can change the behavior of components by using attributes. You can also customize component styling by using CSS custom properties to match your app's branding.
Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.