Package Exports
- @storybook/core-client
- @storybook/core-client/dist/cjs/index.js
- @storybook/core-client/dist/esm/globals/globals
- @storybook/core-client/dist/esm/globals/globals.js
- @storybook/core-client/dist/esm/globals/polyfills
- @storybook/core-client/dist/esm/globals/polyfills.js
- @storybook/core-client/dist/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@storybook/core-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Storybook Core-Client
This package contains browser-side functionality shared amongst all the frameworks (React, RN, Vue, Ember, Angular, etc) in the old "v6" story store back-compatibility layer.
A framework calls the start(renderToDom, { render, decorateStory }) function and provides:
- The
renderToDomfunction, which tells Storybook how to render the result of a story function to the DOM - The
renderfunction, which is a default mapping ofargsto a story result in CSFv3 - The
decorateStoryfunction, which tells Storybook how to combine decorators in the framework.
The start function will return a configure() function, which can be re-exported to be used in preview.js (deprecated), or automatically by the main.js:stories field to:
- return a list of CSF files
- [deprecated] make calls to the
storiesOfAPI.