From 78910fc891bcc35601f06e726c0d7a623c325cb4 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Thu, 25 Jan 2024 09:37:28 +0200 Subject: [PATCH] feat: create story for chevron icon component --- .../General/ChevronIcon.stories.tsx | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/components/General/ChevronIcon.stories.tsx diff --git a/src/components/General/ChevronIcon.stories.tsx b/src/components/General/ChevronIcon.stories.tsx new file mode 100644 index 00000000..a6dd3040 --- /dev/null +++ b/src/components/General/ChevronIcon.stories.tsx @@ -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 + +export default meta +type Story = StoryObj + +export const NotOpened: Story = { + args: { + isOpen: false, + }, +} + +export const Opened: Story = { + args: { + isOpen: true, + }, +}