Skip to content

Commit

Permalink
feat: add storybook example
Browse files Browse the repository at this point in the history
  • Loading branch information
fbelginetw committed Oct 16, 2024
1 parent 8b42948 commit 49a921e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions opentrons-ai-client/src/molecules/Accordion/Accordion.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { I18nextProvider } from 'react-i18next'
import { COLORS, Flex, SPACING } from '@opentrons/components'
import { i18n } from '../../i18n'
import { Accordion } from './index'

import type { Meta, StoryObj } from '@storybook/react'

const meta: Meta<typeof Accordion> = {
title: 'AI/molecules/Accordion',
component: Accordion,
decorators: [
Story => (
<I18nextProvider i18n={i18n}>
<Flex backgroundColor={COLORS.grey10} padding={SPACING.spacing40}>
<Story />
</Flex>
</I18nextProvider>
),
],
}
export default meta
type Story = StoryObj<typeof Accordion>

export const AccordionExample: Story = {
args: {
id: 'accordion',
handleClick: () => {},
isOpen: false,
isCompleted: false,
heading: 'Accordion Title',
children: <div>Accordion Content</div>,
},
}

0 comments on commit 49a921e

Please sign in to comment.