mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
24 lines
582 B
JavaScript
24 lines
582 B
JavaScript
import { configure, setAddon } from '@storybook/react';
|
|
import { setOptions } from '@storybook/addon-options';
|
|
import infoAddon from '@storybook/addon-info';
|
|
|
|
setOptions({
|
|
name: 'CRA Kitchen Sink',
|
|
url: 'https://github.com/storybooks/storybook/tree/master/examples/cra-kitchen-sink',
|
|
goFullScreen: false,
|
|
showLeftPanel: true,
|
|
showDownPanel: true,
|
|
showSearchBox: false,
|
|
downPanelInRight: true,
|
|
sortStoriesByKind: false,
|
|
hierarchySeparator: /\/|\./,
|
|
});
|
|
|
|
setAddon(infoAddon);
|
|
|
|
function loadStories() {
|
|
require('../src/stories');
|
|
}
|
|
|
|
configure(loadStories, module);
|