mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-22 09:19:28 +00:00
feat: create story for chevron icon component
This commit is contained in:
parent
e08492ef48
commit
78910fc891
27
src/components/General/ChevronIcon.stories.tsx
Normal file
27
src/components/General/ChevronIcon.stories.tsx
Normal 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,
|
||||
},
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user