🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@storybook/ember

Package Overview
Dependencies
Maintainers
5
Versions
3307
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/ember

Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.

Source
npmnpm
Version
7.1.0
Version published
Weekly downloads
9.7K
-21.98%
Maintainers
5
Weekly downloads
 
Created
Source

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 Screenshot

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 storybook@latest 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:

import namedBlockPolyfill from 'ember-named-blocks-polyfill/lib/named-blocks-polyfill-plugin';

export default {
  framework: {
    name: '@storybook/ember',
    options: {
      polyfills: [namedBlockPolyfill],
    }
  },
  [...]
};

FAQs

Package last updated on 18 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts