mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Merge pull request #18380 from storybookjs/fix-global-arg-docs
Fix global argTypes definition docs
This commit is contained in:
commit
01fba57706
@ -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' };
|
||||
|
Loading…
x
Reference in New Issue
Block a user