import React from 'react' ; import { ComponentStory , ComponentMeta } from '@storybook/react' ; import Button from './Button' ; export default { title : 'ReactComponentLibrary/Button' , component : Button , } as ComponentMeta < typeof Button > ; const Template = ( args ) => < Button { ... args } / > ; export const HelloWorld = Template . bind ( { } ) ; HelloWorld . args = { label : 'Hello world!' , } ; export const ClickMe = Template . bind ( { } ) ; ClickMe . args = { label : 'Click me!' , } ;