Socket
Socket
Sign inDemoInstall

@storybook/addon-essentials

Package Overview
Dependencies
325
Maintainers
9
Versions
1220
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-essentials

Curated addons to bring out the best of Storybook


Version published
Maintainers
9
Weekly downloads
4,661,796
increased by3.08%
Install size
59.5 MB

Weekly downloads

Package description

What is @storybook/addon-essentials?

The @storybook/addon-essentials package is a collection of essential Storybook addons that are recommended for all Storybook users. It includes a set of addons that provide a wide range of functionality, such as controls for live-editing props, actions for logging interactions, viewport customization for responsive design testing, backgrounds to alter the canvas background, toolbars to add global toolbars, and more. It simplifies the setup process by including these addons by default.

What are @storybook/addon-essentials's main functionalities?

Controls

Controls allow you to interact with your component's arguments dynamically, without needing to code. It's like a playground for your components.

"addons": ["@storybook/addon-essentials"]

Actions

Actions help you to display data received by event handlers in Storybook's UI. It's useful for debugging events.

"addons": ["@storybook/addon-essentials"]

Viewport

Viewport lets you adjust the size of the iframe to check how your stories look on different screen sizes.

"addons": ["@storybook/addon-essentials"]

Backgrounds

Backgrounds can be used to change the background color or image behind your stories. This is useful for visualizing components on different backgrounds.

"addons": ["@storybook/addon-essentials"]

Toolbars & globals

Toolbars and globals allow you to add your own toolbar items and use them to control global types and values in your stories.

"addons": ["@storybook/addon-essentials"]

Other packages similar to @storybook/addon-essentials

Changelog

Source

8.0.8

  • Automigration: Fix name of VTA addon - #26816, thanks @valentinpalkovic!

Readme

Source

Storybook Essentials

Storybook Essentials is a curated collection of addons to bring out the best of Storybook.

Each addon is documented and maintained by the core team and will be upgraded alongside Storybook as the platform evolves. We will also do our best to maintain framework support for all of the officially supported frameworks.

Contents

Storybook essentials includes the following addons. Addons can be disabled and re-configured as described below:

Installation

You can add Essentials to your project with:

npm install --save-dev @storybook/addon-essentials

And then add the following line to your .storybook/main.js:

export default {
  addons: ['@storybook/addon-essentials'],
};

Configuration

Essentials is "zero config." That means that comes with a recommended configuration out of the box.

If you want to reconfigure an addon, simply install that addon per that addon's installation instructions and configure it as normal. Essentials scans your project's main.js on startup and if detects one of its addons is already configured in the addons field, it will skip that addon's configuration entirely.

Disabling addons

You can disable any of Essential's addons using the following configuration scheme in .storybook/main.js:

export default {
  addons: [{
    name: '@storybook/addon-essentials',
    options: {
      <addon-key>: false,
    }
  }]
};

Valid addon keys include: actions, backgrounds, controls, docs, viewport, toolbars.

Keywords

FAQs

Last updated on 11 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc