JSPM

@storybook/core-client

7.0.0-alpha.31
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2615504
  • Score
    100M100P100Q180391F
  • License MIT

Storybook framework-agnostic API

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 renderToDom function, which tells Storybook how to render the result of a story function to the DOM
  • The render function, which is a default mapping of args to a story result in CSFv3
  • The decorateStory function, 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 storiesOf API.