-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: DeleteGridItemButton 관련 스토리북 추가
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/components/asset/DeleteGridItemButton/index.stories.tsx
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,34 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
import { fn } from '@storybook/test' | ||
import DeleteGridItemButton from '.' | ||
|
||
const meta: Meta<typeof DeleteGridItemButton> = { | ||
title: 'Asset/DeleteGridItemButton', | ||
component: DeleteGridItemButton, | ||
parameters: { | ||
docs: { | ||
subtitle: 'DeleteGridItemButton은 Asset을 삭제하는 버튼입니다.', | ||
}, | ||
}, | ||
argTypes: { | ||
onDelete: { | ||
description: '해당 Asset을 삭제합니다.', | ||
}, | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<div className="relative w-8 h-8 m-4"> | ||
<Story /> | ||
</div> | ||
), | ||
], | ||
} | ||
|
||
export default meta | ||
type Story = StoryObj<typeof DeleteGridItemButton> | ||
|
||
export const Default: Story = { | ||
args: { | ||
onDelete: fn(), | ||
}, | ||
} |