Merge pull request #18380 from storybookjs/fix-global-arg-docs

Fix global argTypes definition docs
This commit is contained in:
jonniebigodes 2022-05-31 23:32:08 +01:00 committed by GitHub
commit 01fba57706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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' };