You can also adjust your Storybook configuration and implement your own custom logic for loading your stories. ![]() For example, if you want to load all the stories inside a packages/MyStories, you can adjust the configuration as such: With a custom implementation You can also simplify your Storybook configuration and load the stories based on a directory. When Storybook starts, it will look for any file containing the stories extension inside the packages/stories directory and generate the titles for your stories. For example, if you wanted to load your stories from a packages directory, you could adjust your stories configuration field into the following: js files from the my-project/src/components directory, you could write: With a configuration objectĪdditionally, you can also customize your Storybook configuration to load your stories based on a configuration object. ![]() ![]() If you want to use a different naming convention, you can alter the glob, using the syntax supported by picomatch.įor example, if you wanted to pull both.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |