next-enterprise/components/Button/Button.stories.tsx

32 lines
604 B
TypeScript
Raw Permalink Normal View History

import type { Meta, StoryObj } from "@storybook/nextjs"
2023-04-21 11:20:31 +02:00
import { Button } from "./Button"
const meta: Meta<typeof Button> = {
title: "Button",
component: Button,
args: {
intent: "primary",
2023-04-21 17:50:04 +02:00
underline: false,
2023-04-21 11:20:31 +02:00
children: "Button",
size: "lg",
},
argTypes: {
intent: {
2023-04-21 17:50:04 +02:00
options: ["primary", "secondary"],
2023-04-21 11:20:31 +02:00
control: { type: "select" },
},
size: {
options: ["sm", "lg"],
control: { type: "select" },
},
},
}
type Story = StoryObj<typeof Button>
export const Default: Story = {
render: (args) => <Button {...args} />,
}
export default meta