forked from codesquad-members-2023/second-hand
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Popup 컴포넌트 storybook 생성 (#171)
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
</> | ||
), | ||
}, | ||
}; |