Theme Switcher

Theme Switcher

File locations:

  • src/components/themeSwitcher.tsx

A theme switcher that allows the user to switch between light mode, dark mode, or follow the device theme.

To use the component, import it into your page.tsx like this:

import SignIn from "@/components/themeSwitcher";