mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
29 lines
776 B
JavaScript
29 lines
776 B
JavaScript
import { createHeader } from './Header';
|
|
|
|
export default {
|
|
title: 'Example/Header',
|
|
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/7.0/html/writing-docs/docs-page
|
|
tags: ['docsPage'],
|
|
render: (args) => createHeader(args),
|
|
parameters: {
|
|
// More on how to position stories at: https://storybook.js.org/docs/7.0/html/configure/story-layout
|
|
layout: 'fullscreen',
|
|
},
|
|
// More on argTypes: https://storybook.js.org/docs/7.0/html/api/argtypes
|
|
argTypes: {
|
|
onLogin: { action: 'onLogin' },
|
|
onLogout: { action: 'onLogout' },
|
|
onCreateAccount: { action: 'onCreateAccount' },
|
|
},
|
|
};
|
|
|
|
export const LoggedIn = {
|
|
args: {
|
|
user: {
|
|
name: 'Jane Doe',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const LoggedOut = {};
|