components/ui/DarkModeToggle

DarkModeToggle component toggles between dark and light theme modes. It syncs the mode state with localStorage and adds/removes the 'dark' class on the root element.
Description:
  • DarkModeToggle component toggles between dark and light theme modes. It syncs the mode state with localStorage and adds/removes the 'dark' class on the root element.
Source:
Returns:
A button to toggle dark mode.
Type
JSX.Element