import type { Meta, StoryObj } from "@storybook/react"; import Tick from "../src/icons/tick"; import { Button as ButtonComponent } from "../src/components/button"; export default { title: "Input/Button", component: ButtonComponent, } as Meta; export const Default: StoryObj = { args: { children: "just a button", }, }; export const WithIcon: StoryObj = { args: { children: "Button", icon: Tick, iconPlacement: "left", }, }; export const IconOnly: StoryObj = { args: { icon: Tick, size: "xsmall", }, }; export const Secondary: StoryObj = { args: { children: "Secondary", variant: "secondary", icon: Tick, size: "xsmall", }, }; export const Active: StoryObj = { args: { children: "I'm active", icon: Tick, iconPlacement: "left", size: "xsmall", active: true, }, }; export const ActiveSecondary: StoryObj = { args: { children: "secondary with active", icon: Tick, iconPlacement: "left", size: "xsmall", active: true, }, };