Skip to content

Commit

Permalink
test: Button storybook 제작 #39
Browse files Browse the repository at this point in the history
  • Loading branch information
bottlewook committed Jan 6, 2024
1 parent ec3a103 commit 23fda20
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/components/shared/button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import type { Meta, StoryObj } from '@storybook/react';

import Button from './Button';

const meta = {
title: 'Shared/Button',
component: Button,
parameters: {
},
tags: ['autodocs'],
argTypes: {
},
} satisfies Meta<typeof Button>;

export default meta;
type Story = StoryObj<typeof meta>;

export const largeprimary: Story = {
args: {
children: '로그인 하기',
full: true,
size: 'large',
},
};

export const primary: Story = {
args: {
children: '로그인 하기',
size: 'large',
},
};

export const weakPrimary: Story = {
args: {
children: '로그인 하기',
size: 'large',
weak: true,
},
};

export const filter: Story = {
args: {
children: '조회순',
},
};

export const gray: Story = {
args: {
children: '조회순',
color: 'gray',
},
};

export const Weakgray: Story = {
args: {
children: '조회순',
color: 'gray',
weak: true,
},
};

0 comments on commit 23fda20

Please sign in to comment.