feat: create story for chevron icon component

This commit is contained in:
RadoslavDimchev 2024-01-25 09:37:28 +02:00 committed by Radoslav Dimchev
parent e08492ef48
commit 78910fc891
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
import type { Meta, StoryObj } from '@storybook/react'
import ChevronIcon from './ChevronIcon'
const meta = {
title: 'General/ChevronIcon',
component: ChevronIcon,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
} satisfies Meta<typeof ChevronIcon>
export default meta
type Story = StoryObj<typeof meta>
export const NotOpened: Story = {
args: {
isOpen: false,
},
}
export const Opened: Story = {
args: {
isOpen: true,
},
}