@junk-temporary-prototypes/addon-toolbars
TypeScript icon, indicating that this package has built-in type declarations

7.2.5 • Public • Published

Storybook Toolbars Addon

The Toolbars addon controls global story rendering options from Storybook's toolbar UI. It's a general purpose addon that can be used to:

  • set a theme for your components
  • set your components' internationalization (i18n) locale
  • configure just about anything in Storybook that makes use of a global variable

Framework Support

Screenshot

Installation

Toolbars is part of essentials and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:

npm i -D @storybook/addon-toolbars

Then, add following content to .storybook/main.js:

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

Usage

The usage is documented in the documentation.

FAQs

How does this compare to addon-contexts?

Addon-toolbars is the successor to addon-contexts, which provided convenient global toolbars in Storybook's toolbar.

The primary difference between the two packages is that addon-toolbars makes use of Storybook's new Story Args feature, which has the following advantages:

  • Standardization. Args are built into Storybook in 6.x. Since addon-toolbars is based on args, you don't need to learn any addon-specific APIs to use it.

  • Ergonomics. Global args are easy to consume in stories, in Storybook Docs, or even in other addons.

  • Framework compatibility. Args are completely framework-independent, so addon-toolbars is compatible with React, Vue, Angular, etc. out of the box with no framework logic needed in the addon.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
7.2.50latest
7.2.10next
7.2.0-pr-47-60d512b.00pr-47
7.2.0-pr-46-b35a952.00pr-46
7.2.0-pr-43-e055456.00pr-43
7.2.0-pr-40-asdf123.00pr-40
7.1.0-beta.20beta
7.1.0-alpha.10alpha
7.0.8-alpha.40next}

Version History

VersionDownloads (Last 7 Days)Published
7.2.0-pr-47-60d512b.00
7.2.50
7.2.40
7.2.30
7.2.21
7.2.10
7.2.00
7.2.0-pr-46-b35a952.00
7.2.0-pr-43-e055456.00
7.2.0-pr-43-b6a1f17.00
7.2.0-pr-43-3a3d678.00
7.2.0-pr-43-a1ec640.00
7.2.0-alpha.60
7.2.0-alpha.50
7.2.0-alpha.40
7.2.0-pr-40-asdf123.00
7.2.0-alpha.30
7.2.0-alpha.20
7.0.8-alpha.40
7.0.8-alpha.30
7.0.8-alpha.20
7.0.8-alpha.10
7.0.8-alpha.00
7.1.10
7.0.90
7.1.00
7.1.0-beta.20
7.1.0-alpha.10
7.1.0-alpha.00
7.0.80
7.0.70

Package Sidebar

Install

npm i @junk-temporary-prototypes/addon-toolbars

Weekly Downloads

1

Version

7.2.5

License

MIT

Unpacked Size

19.8 kB

Total Files

11

Last publish

Collaborators

  • kasperpeulen
  • jreinhold