Package Exports
- @storybook/ember
- @storybook/ember/dist/cjs/index.js
- @storybook/ember/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/ember) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Storybook for Ember
Storybook for Ember is a UI development environment for your Ember components. With it, you can visualize different states of your UI components and develop them interactively.
Storybook runs outside of your app. So you can develop UI components in isolation without worrying about app specific dependencies and requirements.
Getting Started
cd my-ember-app
npx sb init
For more information visit: storybook.js.org
Storybook also comes with a lot of addons and a great API to customize as you wish. You can also build a static version of your Storybook and deploy it anywhere you want.
Docs
Working with polyfills
If you need to use a polyfill that is already in use in our Ember application, you will need to add some options to have Storybook working with them.
In this example we'll use the named-block-polyfill.
This example also assume that you already have the package in your package.json
.
In your .storybook/main.js
you can add the following lines:
const namedBlockPolyfill = require('ember-named-blocks-polyfill/lib/named-blocks-polyfill-plugin');
module.exports = {
emberOptions: {
polyfills: [namedBlockPolyfill],
},
[...]
};