Skip to content

Commit

Permalink
feat: Popup 컴포넌트 storybook 생성 (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
aken-you committed Jun 28, 2023
1 parent af3d091 commit 01a5d47
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions fe/src/components/common/Popup/Popup.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { Meta, StoryObj } from '@storybook/react';

import Popup from '.';

const popupMeta: Meta<typeof Popup> = {
title: 'common/Popup',
component: Popup,
};

export default popupMeta;

type PopupStory = StoryObj<typeof Popup>;

export const PrimaryPopup: PopupStory = {
args: {
text: '정말로 삭제하시겠습니까?',
children: (
<>
<button style={{ width: '100px', border: '1px solid black' }}></button>
<button style={{ width: '100px', border: '1px solid black' }}>아니오</button>
</>
),
},
};

0 comments on commit 01a5d47

Please sign in to comment.