import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import Accordion from './Accordion'; import { NewComp } from '../NewComp'; export default { title: '3.Layout/Accordion', component: Accordion, } as ComponentMeta; const Template: ComponentStory = (args) => ( ); export const FullDemo = Template.bind({}); FullDemo.args = { children: [], isExpanded: false, hasLockIcon: true, id: 'accordion', subTitle: 'the sub title', tagText: 'Tag!', theme: 'blue', title: 'Accordion', }; export const Default = Template.bind({}); Default.args = { children: [], id: 'accordion', title: 'Accordion', }; export const HasSubtitle = Template.bind({}); HasSubtitle.args = { children: [], id: 'accordion', subTitle: 'the sub title', title: 'Accordion Title', }; export const HasTag = Template.bind({}); HasTag.args = { children: [], id: 'accordion', tagText: 'Tag!', title: 'Accordion Title', }; export const HasIcon = Template.bind({}); HasIcon.args = { children: [], id: 'accordion', hasLockIcon: true, title: 'Accordion Title', }; export const Expanded = Template.bind({}); Expanded.args = { children: [], id: 'accordion', isExpanded: true, title: 'Expanded by default', }; export const ThemeColor = Template.bind({}); ThemeColor.args = { children: [], id: 'accordion', theme: 'green', title: 'Theme is green', };