Last active
October 13, 2024 12:24
-
-
Save paulweezydesign/97dbf6f9494e13bd558a6c00c8f7babe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button | |
onClick={toggleTheme} | |
className="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 focus:outline-none" | |
aria-label="Toggle theme" | |
> | |
{theme === 'light' ? ( | |
<Moon className="h-5 w-5 text-gray-700 dark:text-gray-300" /> | |
) : ( | |
<Sun className="h-5 w-5 text-gray-700 dark:text-gray-300" /> | |
)} | |
</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment