config.js 793 B

123456789101112131415161718192021222324252627
  1. import { addParameters, configure } from '@storybook/react';
  2. addParameters({
  3. options: {
  4. name: '@superset-ui/plugins-template 🔌💡',
  5. addonPanelInRight: false,
  6. enableShortcuts: false,
  7. goFullScreen: false,
  8. hierarchyRootSeparator: null,
  9. hierarchySeparator: /\|/,
  10. selectedAddonPanel: undefined, // The order of addons in the "Addon panel" is the same as you import them in 'addons.js'. The first panel will be opened by default as you run Storybook
  11. showAddonPanel: true,
  12. showSearchBox: false,
  13. showStoriesPanel: true,
  14. sidebarAnimations: true,
  15. sortStoriesByKind: false,
  16. url: '#',
  17. },
  18. });
  19. function loadStorybook() {
  20. require('./storybook.css');
  21. require('../storybook/stories'); // all of the stories
  22. }
  23. configure(loadStorybook, module);