Skip to content

Commit

Permalink
disable controls, rather than not providing anything
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed Jun 14, 2024
1 parent 153a5c7 commit ed9b893
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/source/storybook.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default {
title: 'Source/src-my-component/MyComponent',
component: MyComponent,
argTypes: {
id: {},
id: { control: { disable: true } },
},
args: {
label: 'Label',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const meta: Meta<typeof NumericInput> = {
},
control: { type: 'radio' },
},
id: {},
id: { control: { disable: true } },
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const meta: Meta<typeof Radio> = {
type: 'text',
},
},
cssOverrides: {},
cssOverrides: { control: { disable: true } },
},
args: {
label: 'Red',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const meta: Meta<typeof RadioGroup> = {
type: 'text',
},
},
id: {},
className: {},
cssOverrides: {},
id: { control: { disable: true } },
className: { control: { disable: true } },
cssOverrides: { control: { disable: true } },
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const meta: Meta<typeof TextInput> = {
},
control: { type: 'radio' },
},
id: {},
id: { control: { disable: true } },
},
};

Expand Down

0 comments on commit ed9b893

Please sign in to comment.