File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/components/accordion/stories Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import React from 'react';
4
4
import { ICONS } from '@/assets' ;
5
5
import { ReplaceContent } from '@/components/storybook/replaceContent/replaceContent' ;
6
6
import { TextComponentType } from '@/components/text' ;
7
+ import { ToggleUnControlled } from '@/components/toggle/toggleUnControlled' ;
7
8
import { STYLES_NAME } from '@/constants' ;
8
9
import { themesObject , variantsObject } from '@/designSystem/themesObject' ;
9
10
@@ -40,6 +41,20 @@ export const Accordion: Story = {
40
41
subHeaderContent : 'Hi, i am a subheader content' ,
41
42
triggerComponent : TextComponentType . H3 ,
42
43
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
+ ) ,
43
58
themeArgs : themesObject [ themeSelected ] [ STYLES_NAME . ACCORDION ] ,
44
59
} ,
45
60
} ;
You can’t perform that action at this time.
0 commit comments