Skip to content

Instantly share code, notes, and snippets.

@kjmczk
Created May 30, 2021 05:24
Show Gist options
  • Save kjmczk/fe5a685d619690ec218847e6be3c5b68 to your computer and use it in GitHub Desktop.
Save kjmczk/fe5a685d619690ec218847e6be3c5b68 to your computer and use it in GitHub Desktop.
components/Header.tsx - MDX Blog with Dark Mode - Medium
// components/Header.tsx
import ThemeSwitch from './theme-switch';
const Header: React.FC = () => {
return (
<header className="py-2">
<div className="flex justify-between items-center">
...
<ThemeSwitch />
</div>
</header>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment