Components
Dark mode toggle
The Dark Mode Toggle component provides an easy-to-use button for switching between light and dark themes in your application. It uses the next-themes library for theme management and displays appropriate icons based on the current theme.
![Dark Mode Toggle](https://mintlify.s3.us-west-1.amazonaws.com/bytedash/images/components/dark-mode-toggle.png)
![Dark Mode Toggle Dark](https://mintlify.s3.us-west-1.amazonaws.com/bytedash/images/components/dark-mode-toggle-dark.png)
page.tsx
You can also set up the initial theme in the configuration file.
Usage
![Dark Mode Toggle Dark](https://mintlify.s3.us-west-1.amazonaws.com/bytedash/images/dark-mode.gif)
example.tsx
The Dark Mode Toggle component creates a button that allows users to switch between light and dark themes. It automatically handles the theme change and updates the button’s icon to reflect the current theme.
If you need basic components like buttons, inputs, and more, they are available with Shadcn UI.