mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-23 13:48:58 -05:00
29 lines
672 B
TypeScript
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",
|
|
},
|
|
};
|