mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 11:51:07 +08:00
28 lines
603 B
JavaScript
28 lines
603 B
JavaScript
import { Header } from './Header';
|
|
|
|
export default {
|
|
title: 'Example/Header',
|
|
component: Header,
|
|
parameters: {
|
|
// More on Story layout: https://storybook.js.org/docs/preact/configure/story-layout
|
|
layout: 'fullscreen',
|
|
},
|
|
argTypes: {
|
|
onLogin: { action: 'onLogin' },
|
|
onLogout: { action: 'onLogout' },
|
|
onCreateAccount: { action: 'onCreateAccount' },
|
|
},
|
|
};
|
|
|
|
const Template = (args) => <Header {...args} />;
|
|
|
|
export const LoggedIn = Template.bind({});
|
|
LoggedIn.args = {
|
|
user: {
|
|
name: 'Jane Doe',
|
|
},
|
|
};
|
|
|
|
export const LoggedOut = Template.bind({});
|
|
LoggedOut.args = {};
|