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

15 lines
360 B
TypeScript
Raw Normal View History

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;
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 = {};