Skip to content

Commit

Permalink
feat: accessible icon button story
Browse files Browse the repository at this point in the history
  • Loading branch information
poiu694 committed Jun 29, 2024
1 parent e8b8f71 commit 4c99196
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/stories/accessible-icon-button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Meta, StoryObj } from '@storybook/react'

import { AccessibleIconButton } from '@/components'
import { icons } from '@/components/common/icons'

const meta: Meta<typeof AccessibleIconButton> = {
title: 'Components/AccessibleIconButton',
component: AccessibleIconButton,
argTypes: {
icon: {
control: 'select',
options: Object.keys(icons),
},
label: {
control: 'text',
},
},
}

export default meta
type Story = StoryObj<typeof AccessibleIconButton>

export const Default: Story = {
args: {
icon: {
type: 'infoCircle',
fill: 'blue',
stroke: 'yellow',
},
label: 'Heart Icon',
},
}

0 comments on commit 4c99196

Please sign in to comment.