You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Storybook Args RFC introduces two types of dynamic data to Storybook, Args and GlobalArgs, and we are renaming GlobalArgs to Globals
Rationale
Args and GlobalArgs share a similar implementation, but different semantics. Specifically, Args are arguments to a story and can only be set at the story or component levels. GlobalArgs are dynamic global variables for Storybook UI (and potentially other uses?) and can only be set globally.
In documenting Args, we found it confusing that there are no "global Args" but there are "GlobalArgs." So before we release and the name sticks forever, we're renaming globalArgs to globals. And globalArgTypes to globalTypes.
The text was updated successfully, but these errors were encountered:
Storybook Args RFC introduces two types of dynamic data to Storybook, Args and GlobalArgs, and we are renaming GlobalArgs to Globals
Rationale
Args and GlobalArgs share a similar implementation, but different semantics. Specifically, Args are arguments to a story and can only be set at the story or component levels. GlobalArgs are dynamic global variables for Storybook UI (and potentially other uses?) and can only be set globally.
In documenting Args, we found it confusing that there are no "global Args" but there are "GlobalArgs." So before we release and the name sticks forever, we're renaming
globalArgs
toglobals
. AndglobalArgTypes
toglobalTypes
.The text was updated successfully, but these errors were encountered: