Skip to content

Commit

Permalink
feat(code-snippet): update story to Storybook v7 (#11312)
Browse files Browse the repository at this point in the history
* chore(code-snippet): update code-snippet to sb v7

* chore(code-snippet): include storybook layers components

* chore(code-snippet): include storybook layers components

---------

Co-authored-by: kennylam <[email protected]>
Co-authored-by: Ignacio Becerra <[email protected]>
  • Loading branch information
3 people authored Jan 11, 2024
1 parent 7901205 commit c9193f9
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 216 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 @@ -24,6 +24,8 @@ const stories = glob.sync(
'../src/**/accordion.stories.ts',
'../src/**/breadcrumb.mdx',
'../src/**/breadcrumb.stories.ts',
'../src/**/code-snippet.mdx',
'../src/**/code-snippet.stories.ts',
'../src/**/combo-box.stories.ts',
'../src/**/combo-box.mdx',
'../src/**/date-picker.mdx',
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 CodeSnippetStories from './code-snippet.stories';

<Meta of={CodeSnippetStories} />

# Code snippet

Expand Down Expand Up @@ -80,4 +83,4 @@ For the skeleton variation, utilize `<cds-code-snippet-skeleton>`.

## `<cds-code-snippet>` attributes and properties

<Props of="cds-code-snippet" />
<ArgsTable of="cds-code-snippet" />
Loading

0 comments on commit c9193f9

Please sign in to comment.