Download react-use/.storybook/config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/.storybook/config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-use/.storybook/config.js
-
curl -L -o config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/.storybook/config.js
517 Bytes
| import {configure} from '@storybook/react'; | |
| import {setOptions} from '@storybook/addon-options'; | |
| setOptions({ | |
| sortStoriesByKind: false, | |
| showStoriesPanel: true, | |
| showAddonPanel: true, | |
| showSearchBox: false, | |
| addonPanelInRight: true, | |
| hierarchySeparator: /\//, | |
| hierarchyRootSeparator: /\|/, | |
| sidebarAnimations: false, | |
| }); | |
| const req = require.context('../stories/', true, /\.story\.tsx?$/); | |
| const loadStories = () => { | |
| req.keys().forEach((filename) => req(filename)); | |
| }; | |
| configure(loadStories, module); | |