UNPKG

@storybook/cli

Version:

Storybook's CLI - easiest method of adding storybook to your projects

24 lines (19 loc) 484 B
/** @jsx h */ import { h } from 'preact'; import { Header } from './Header'; export default { title: 'Example/Header', component: Header, argTypes: { onLogin: { action: 'onLogin' }, onLogout: { action: 'onLogout' }, onCreateAccount: { action: 'onCreateAccount' }, }, }; const Template = (args) => <Header {...args} />; export const LoggedIn = Template.bind({}); LoggedIn.args = { user: {}, }; export const LoggedOut = Template.bind({}); LoggedOut.args = {};