import { ComponentStory , ComponentMeta } from '@storybook/react' ; import { Badge } from './Badge' ; export default { title : 'Components/Badge' , component : Badge , parameters : { design : { type : 'figspec' , url : 'https://www.figma.com/file/XW4Bcjmj3JOILjKmZjjdQd/Mealdrop?node-id=780%3A2938' , } , } , } as ComponentMeta < typeof Badge > ; const Template = ( args ) => < Badge { ... args } / > ; export const Default = Template . bind ( { } ) ; Default . args = { text : 'Comfort food' , } ;