Skip to content

Commit

Permalink
Feat: DeleteGridItemButton 관련 스토리북 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
y-solb committed Jul 23, 2024
1 parent 2a80d4b commit 9052553
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/components/asset/DeleteGridItemButton/index.stories.tsx
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(),
},
}

0 comments on commit 9052553

Please sign in to comment.