next-enterprise/components/Button/Button.stories.tsx
Коробцев Виталий Сергеевич f1bfd92289
Some checks failed
Check / Check (push) Has been cancelled
Next.js Bundle Analysis / analyze (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
On branch main
Your branch is up to date with 'origin/main'.

 Changes to be committed:
	new file:   .github/workflows/ Code Citations.md
	modified:   .github/workflows/nextjs_bundle_analysis.yml
	modified:   .storybook/main.ts
	modified:   .storybook/preview.ts
	modified:   app/layout.tsx
	modified:   app/page.tsx
	modified:   components/Button/Button.stories.tsx
	modified:   package.json
	modified:   pnpm-lock.yaml
	modified:   styles/tailwind.css
2025-08-14 02:19:10 +05:00

31 lines
604 B
TypeScript

import type { Meta, StoryObj } from "@storybook/nextjs"
import { Button } from "./Button"
const meta: Meta<typeof Button> = {
title: "Button",
component: Button,
args: {
intent: "primary",
underline: false,
children: "Button",
size: "lg",
},
argTypes: {
intent: {
options: ["primary", "secondary"],
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