Files
formbricks/packages/ui/v2/Button/stories.ts
T
2023-10-19 10:21:49 +00:00

29 lines
672 B
TypeScript

import type { Meta, StoryObj } from "@storybook/react";
import { Button } from "./index";
const meta = {
title: "Button",
component: Button,
tags: ["autodocs"],
argTypes: {
variant: {
control: "select",
options: ["highlight", "primary", "secondary", "minimal", "warn", "alert", "darkCTA"],
},
size: { control: "select", options: ["base", "sm", "lg", "fab", "icon"] },
onClick: { action: "clicked", type: "function" },
},
} satisfies Meta<typeof Button>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Primary: Story = {
args: {
className: "",
children: "Button",
variant: "secondary",
},
};