Skip to content

Commit

Permalink
Fix global argTypes definition docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed May 31, 2022
1 parent 736df3c commit 2317e6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 2317e6e

Please sign in to comment.