Skip to content

Commit 44d3d50

Browse files
author
Kubit
committed
Improve Accordion stories
1 parent 0a34472 commit 44d3d50

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/components/accordion/stories/accordion.stories.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import React from 'react';
44
import { ICONS } from '@/assets';
55
import { ReplaceContent } from '@/components/storybook/replaceContent/replaceContent';
66
import { TextComponentType } from '@/components/text';
7+
import { ToggleUnControlled } from '@/components/toggle/toggleUnControlled';
78
import { STYLES_NAME } from '@/constants';
89
import { themesObject, variantsObject } from '@/designSystem/themesObject';
910

@@ -40,6 +41,20 @@ export const Accordion: Story = {
4041
subHeaderContent: 'Hi, i am a subheader content',
4142
triggerComponent: TextComponentType.H3,
4243
footerContent: <ReplaceContent />,
44+
headerRightContent: (
45+
<ToggleUnControlled
46+
aria-label="toggle aria label"
47+
inputValues={{
48+
rightInputValue: 'on option',
49+
centerInputValue: 'undeterminated option',
50+
leftInputValue: 'off option',
51+
leftIconAltText: 'on option',
52+
}}
53+
offIcon={{ icon: ICONS.ICON_CHEVRON_UP }}
54+
variant="DEFAULT"
55+
onIcon={{ icon: ICONS.ICON_CHEVRON_DOWN }}
56+
/>
57+
),
4358
themeArgs: themesObject[themeSelected][STYLES_NAME.ACCORDION],
4459
},
4560
};

0 commit comments

Comments
 (0)