Skip to content

Commit

Permalink
fix(doc): add missing button controls
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier committed Jul 29, 2024
1 parent 06c578d commit 26d92b1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/storybook/stories/components/button/button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const Demo: StoryObj = {
<ods-button class="my-button-demo"
color="${arg.color}"
icon="${arg.icon}"
is-disabled="${arg.isDisabled}"
is-loading="${arg.isLoading}"
label="${arg.label}"
size="${arg.size}"
variant="${arg.variant}">
Expand Down Expand Up @@ -55,6 +57,22 @@ export const Demo: StoryObj = {
control: { type: 'select' },
options: ODS_ICON_NAMES,
},
isDisabled: {
table: {
category: CONTROL_CATEGORY.general,
defaultValue: { summary: 'false' },
type: { summary: 'boolean' }
},
control: 'boolean',
},
isLoading: {
table: {
category: CONTROL_CATEGORY.general,
defaultValue: { summary: 'false' },
type: { summary: 'boolean' }
},
control: 'boolean',
},
label: {
table: {
category: CONTROL_CATEGORY.general,
Expand Down Expand Up @@ -85,6 +103,8 @@ export const Demo: StoryObj = {
}),
args: {
color: ODS_BUTTON_COLOR.primary,
isDisabled: false,
isLoading: false,
label: 'My button',
size: ODS_BUTTON_SIZE.md,
variant: ODS_BUTTON_VARIANT.default,
Expand Down

0 comments on commit 26d92b1

Please sign in to comment.