-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b42948
commit 49a921e
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
opentrons-ai-client/src/molecules/Accordion/Accordion.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>, | ||
}, | ||
} |