Options Parameter
Storybook UI is configurable using an options API that allows you to tweak its appearance globally and for each story.
Global options
Import and use setConfig
in your manager.js
file.
showRoots
Import and use addParameters
with the options
key in your preview.js
file.
Sorting stories
Import and use addParameters
with the options
key in your preview.js
file.
For more information on configuring the theme
, see theming.
Per-story options
The options-addon accepts story parameters on the options
key: