Skip to content

Commit

Permalink
feat(accordion): update story to Storybook v7 (carbon-design-system#1…
Browse files Browse the repository at this point in the history
…1306)

* chore(accordion): first pass at updating accordion for sb v7

* chore(accordion): finish updating accordion to sb v7

* chore(accordion): tidy up excess import

---------

Co-authored-by: Ignacio Becerra <[email protected]>
  • Loading branch information
m4olivei and IgnacioBecerra authored Jan 10, 2024
1 parent 115e13e commit 3431d66
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 198 deletions.
2 changes: 2 additions & 0 deletions packages/carbon-web-components/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const stories = glob.sync(
// '../src/**/*.mdx',
// '../src/**/*.stories.@(js|jsx|ts|tsx)',
// add mdx/story files as they are being worked on
'../src/**/accordion.mdx',
'../src/**/accordion.stories.ts',
'../src/**/breadcrumb.mdx',
'../src/**/breadcrumb.stories.ts',
'../src/**/combo-box.stories.ts',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Props, Description } from '@storybook/addon-docs/blocks';
import { ArgsTable, Meta, Description } from '@storybook/addon-docs/blocks';
import { cdnJs, cdnCss } from '../../globals/internal/storybook-cdn';
import * as AccordionStories from './accordion.stories';

<Meta of={AccordionStories} />

# Accordion

Expand Down Expand Up @@ -87,4 +90,4 @@ Note: For `boolean` attributes, `true` means simply setting the attribute (e.g.
`<cds-accordion-item open>`) and `false` means not setting the attribute (e.g.
`<cds-accordion-item>` without `open` attribute).

<Props of="cds-accordion-item" />
<ArgsTable of="cds-accordion-item" />
Loading

0 comments on commit 3431d66

Please sign in to comment.