import React from 'react' ; import { ComponentStory , ComponentMeta } from '@storybook/react' ; import { Button } from './Button' ; export default { title : 'Components/Button' , component : Button , argTypes : { } , } as ComponentMeta < typeof Button > ; const Template = ( { ... args } ) => < Button { ... args } > Click me < /Button>; export const Primary = Template . bind ( { } ) ; Primary . args = { } ; export const Loading = Template . bind ( { } ) ; Loading . args = { loading : true , } ;