import preview from "#.storybook/preview"; import { fn } from "storybook/test"; import { Button } from "../../src/ts/components/common/Button"; const meta = preview.meta({ title: "Common/Button", component: Button, parameters: { layout: "centered", }, tags: ["autodocs"], argTypes: { active: { control: "boolean", }, disabled: { control: "boolean", }, text: { control: "text", }, fa: { control: "object", }, balloon: { control: "object", }, class: { control: "text", }, "router-link": { control: "boolean", }, href: { control: "text", }, sameTarget: { control: "boolean", }, }, args: { onClick: fn(), }, }); export const Default = meta.story({ args: { text: "Button", type: "button", }, }); export const AllVariants = meta.story({ render: () => (