import type { Meta, StoryObj } from "@storybook/react"; import { Button } from "./Button"; // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export const meta: Meta = { title: "Example/Button", component: Button, // More on argTypes: https://storybook.js.org/docs/react/api/argtypes argTypes: { backgroundColor: { control: "color" }, }, tags: ["autodocs"], parameters: { myAddonParameter: ` a.id} /> `, }, }; export default meta; type Story = StoryObj; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args export const Primary: Story = { // More on args: https://storybook.js.org/docs/react/writing-stories/args args: { primary: true, label: "Button", }, }; export const Secondary: Story = { args: { label: "Button", }, }; export const Large: Story = { args: { size: "large", label: "Button", }, }; export const Small: Story = { args: { size: "small", label: "Button", }, };