feature/tauri-js-rs
js 29 lines 643 Bytes
Raw
1 import { fn } from '@storybook/test';
2 import { Header } from './Header';
3
4 export default {
5 title: 'Example/Header',
6 component: Header,
7 // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
8 tags: ['autodocs'],
9 parameters: {
10 // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
11 layout: 'fullscreen',
12 },
13 args: {
14 onLogin: fn(),
15 onLogout: fn(),
16 onCreateAccount: fn(),
17 },
18 };
19 export const LoggedIn = {
20 args: {
21 user: {
22 name: 'Jane Doe',
23 },
24 },
25 };
26
27 export const LoggedOut = {
28 args: {},
29 };