Skip to content

Commit

Permalink
Merge pull request #18380 from storybookjs/fix-global-arg-docs
Browse files Browse the repository at this point in the history
Fix global argTypes definition docs
  • Loading branch information
jonniebigodes committed May 31, 2022
2 parents 28a2424 + 2317e6e commit 01fba57
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2,7 +2,7 @@
// preview.js

// All stories expect a theme arg
export const argTypes = { theme: { control: { options: ['light', 'dark'] } } };
export const argTypes = { theme: { control: 'select', options: ['light', 'dark'] } };

// The default value of the theme arg to all stories
export const args = { theme: 'light' };
Expand Down

0 comments on commit 01fba57

Please sign in to comment.