Skip to content

Commit

Permalink
[#26] 공통 버튼 story
Browse files Browse the repository at this point in the history
  • Loading branch information
03hoho03 committed May 18, 2024
1 parent cbc549a commit a9cbbbb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/stories/common/Button.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { Meta, StoryObj } from '@storybook/react'
import { fn } from '@storybook/test'
import { Button } from '@/components/common/button'

const meta = {
title: 'Common/Button',
component: Button,
parameters: {
layout: 'centered',
},
args: { onClick: fn() },
} satisfies Meta<typeof Button>

export default meta

type Story = StoryObj<typeof meta>

export const Primary: Story = {
args: {},
}

0 comments on commit a9cbbbb

Please sign in to comment.