2022-03-30 09:49:48 +00:00
|
|
|
import type { Story, Meta } from '@storybook/react';
|
2022-03-09 08:57:59 +00:00
|
|
|
import { ThemeSwitcher } from './theme-switcher';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
component: ThemeSwitcher,
|
|
|
|
title: 'ThemeSwitcher',
|
|
|
|
} as Meta;
|
|
|
|
|
2022-03-31 13:20:36 +00:00
|
|
|
const Template: Story = () => (
|
2022-03-09 08:57:59 +00:00
|
|
|
<ThemeSwitcher onToggle={() => document.body.classList.toggle('dark')} />
|
|
|
|
);
|
|
|
|
|
|
|
|
export const Default = Template.bind({});
|
|
|
|
Default.args = {};
|