Skip to content

Commit

Permalink
chore(radio-button): update radio-button stories to sb v7 (#11361)
Browse files Browse the repository at this point in the history
Co-authored-by: kennylam <[email protected]>
  • Loading branch information
m4olivei and kennylam authored Jan 18, 2024
1 parent 7a3a48f commit 722a84e
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 161 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 @@ -76,6 +76,8 @@ const stories = glob.sync(
'../src/**/progress-bar.stories.ts',
'../src/**/progress-indicator.mdx',
'../src/**/progress-indicator.stories.ts',
'../src/**/radio-button.mdx',
'../src/**/radio-button.stories.ts',
'../src/**/search.mdx',
'../src/**/search.stories.ts',
'../src/**/select.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, Markdown } from '@storybook/addon-docs/blocks';
import { cdnJs, cdnCss } from '../../globals/internal/storybook-cdn';
import * as RadioButtonStories from './radio-button.stories';

<Meta of={RadioButtonStories} />

# Radio button

Expand All @@ -22,8 +25,8 @@ Here's a quick example to get you started.
import '@carbon/web-components/es/components/radio-button/index.js';
```

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

### HTML

Expand Down Expand Up @@ -56,12 +59,12 @@ Note: For `boolean` attributes, `true` means simply setting the attribute (e.g.
`<cds-radio-button-group disabled>`) and `false` means not setting the attribute
(e.g. `<cds-radio-button-group>` without `disabled` attribute).

<Props of="cds-radio-button-group" />
<ArgsTable of="cds-radio-button-group" />

## `<cds-radio-button-group>` attributes, properties and events

Note: For `boolean` attributes, `true` means simply setting the attribute (e.g.
`<cds-radio-button-group disabled>`) and `false` means not setting the attribute
(e.g. `<cds-radio-button-group>` without `disabled` attribute).

<Props of="cds-radio-button-group" />
<ArgsTable of="cds-radio-button-group" />
Loading

0 comments on commit 722a84e

Please sign in to comment.