Skip to content

Commit

Permalink
feat(tile): update to storybook v7 (carbon-design-system#11437)
Browse files Browse the repository at this point in the history
* feat(tile): update to storybook v7

* fix(tile): addressed comments

* Update packages/carbon-web-components/src/components/tile/tile.stories.ts

* Update packages/carbon-web-components/src/components/tile/tile.stories.ts

---------

Co-authored-by: kennylam <[email protected]>
  • Loading branch information
IgnacioBecerra and kennylam authored Jan 24, 2024
1 parent 2d67d83 commit cbdf754
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 195 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 @@ -105,6 +105,8 @@ const stories = glob.sync(
'../src/**/textarea.stories.ts',
'../src/**/text-input.mdx',
'../src/**/text-input.stories.ts',
'../src/**/tile.mdx',
'../src/**/tile.stories.ts',
'../src/**/tooltip.mdx',
'../src/**/tooltip.stories.ts',
'../src/**/ui-shell.mdx',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Props, Description } from '@storybook/addon-docs/blocks';
import { ArgsTable, Markdown } from '@storybook/addon-docs/blocks';
import { cdnJs, cdnCss } from '../../globals/internal/storybook-cdn';

# Tile
Expand Down Expand Up @@ -30,8 +30,8 @@ Here's a quick example to get you started.
import '@carbon/web-components/es/components/tile/index.js';
```

<Description markdown={`${cdnJs({ components: ['tile'] })}`} />
<Description markdown={`${cdnCss()}`} />
<Markdown>{`${cdnJs({ components: ['tile'] })}`}</Markdown>
<Markdown>{`${cdnCss()}`}</Markdown>

### HTML

Expand All @@ -58,7 +58,7 @@ contain separate internal CTAs.

## `<cds-clickable-tile>` attributes and properties

<Props of="cds-clickable-tile" />
<ArgsTable of="cds-clickable-tile" />

## Radio tile

Expand All @@ -81,7 +81,7 @@ Note: For `boolean` attributes, `true` means simply setting the attribute (e.g.
`<cds-radio-tile selected>`) and `false` means not setting the attribute (e.g.
`<cds-radio-tile>` without `selected` attribute).

<Props of="cds-radio-tile" />
<ArgsTable of="cds-radio-tile" />

## Selectable tile

Expand All @@ -97,7 +97,7 @@ Note: For `boolean` attributes, `true` means simply setting the attribute (e.g.
`<cds-selectable-tile selected>`) and `false` means not setting the attribute
(e.g. `<cds-selectable-tile>` without `selected` attribute).

<Props of="cds-selectable-tile" />
<ArgsTable of="cds-selectable-tile" />

## Multi Select

Expand Down Expand Up @@ -163,4 +163,4 @@ Note: For `boolean` attributes, `true` means simply setting the attribute (e.g.
`<cds-expandable-tile expanded>`) and `false` means not setting the attribute
(e.g. `<cds-expandable-tile>` without `expanded` attribute).

<Props of="cds-expandable-tile" />
<ArgsTable of="cds-expandable-tile" />
Loading

0 comments on commit cbdf754

Please sign in to comment.