```ts // Button.stories.ts import { Meta, StoryFn } from '@storybook/html'; import { createButton, ButtonArgs } from './Button'; export default { /* πŸ‘‡ The title prop is optional. * See https://storybook.js.org/docs/html/configure/overview#configure-story-loading * to learn how to generate automatic titles */ title: 'Button', } as Meta; //πŸ‘‡ We create a β€œtemplate” of how args map to rendering const Template: StoryFn = (args): HTMLButtonElement => createButton(args); //πŸ‘‡ Each story then reuses that template export const Primary = Template.bind({}); Primary.args = { primary: true, label: 'Button' }; export const Secondary = Template.bind({}); Secondary.args = { ...Primary.args, label: 'πŸ˜„πŸ‘πŸ˜πŸ’―' }; export const Tertiary = Template.bind({}); Tertiary.args = { ...Primary.args, label: 'πŸ“šπŸ“•πŸ“ˆπŸ€“' }; ```