How to use the @storybook/addon-options.setOptions function in @storybook/addon-options

To help you get started, we’ve selected a few @storybook/addon-options examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jakubjafra / react-native-hybrid-storybook / src / web / storybook / config.js View on Github external
}

chaptersAddonSetDefaults({
    sectionOptions: {
        useTheme: true, // TODO: Make own distinct theme
        showSource: false,
        allowSourceToggling: true,
        showPropTables: false,
        allowPropTablesToggling: true,
    },
});
setAddon(chaptersAddon);

addDecorator(withKnobs);

setOptions(addonOptions);

configure(loadStories, module);

@storybook/addon-options

Options addon for storybook

MIT
Latest version published 4 years ago

Package Health Score

78 / 100
Full package analysis