Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tile): update to storybook v7 #11437

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading