vega-frontend-monorepo/libs/ui-toolkit/src/components/theme-switcher/theme-switcher.stories.tsx

15 lines
359 B
TypeScript
Raw Normal View History

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