New
You're viewing older docs for version 6.3. View latest docs

Add to the addon catalog

Storybook addons are listed in the catalog and distributed via npm. The catalog is populated by querying npm's registry for Storybook-specific metadata in package.json.

Add your addon to the catalog by publishing an npm package that follows these requirements:

  • package.json with module information and addon metadata
  • README.md file with installation and configuration instructions
  • /dist directory containing transpiled ES5 code
  • preset.js file written as an ES5 module at the root level

Get a refresher on how to write a Storybook addon.

Addon metadata

We rely on metadata to organize your addon in the catalog. You must add the storybook-addons as the first keyword, followed by your addon's category. Additional keywords will be used in search and as tags.

PropertyDescriptionExample
nameAddon package namestorybook-addon-outline
descriptionAddon descriptionOutline all elements with CSS to help with layout placement and alignment
authorName of the authorwinkerVSbecks
keywordsList of keywords to describe the addon["storybook-addons","style","debug"]
repositoryAddon repository{"type": "git","url": "https://github.com/someone/my-addon" }

Customize your addon's appearance by adding the storybook property with the following fields.

PropertyDescriptionExample
displayNameDisplay nameOutline
iconLink to custom icon for the addon (SVG are not supported)https://yoursite.com/outline-icon.png
unsupportedFrameworksList of unsupported frameworks["vue"]
supportedFrameworksList of supported frameworks["react", "angular"]

Use the table below as a reference when filling in the values for both the supportedFrameworks and unsupportedFrameworks metadata properties.

reactvueangular
web-componentsemberhtml
aureliapreactsvelte
marionettereact-native
Note: Make sure to copy each item exactly as listed so that we can properly index your addon in our catalog.
Loading...

The package.json above appears like below in the catalog. See an example of a production package.json here.

Storybook addon in the catalog

How long does it take for my addon to show up in the catalog?

Once you publish the addon, it will appear in the catalog. There may be a delay between the time you publish your addon and when it's listed in the catalog. If your addon doesn't show up within 24 hours, open an issue.

Was this page helpful?

Markdown accepted ([link text](url), _italic_, **bold**, etc). Your anonymous feedback will be posted publicly on GitHub.

✍️ Edit on GitHub – PRs welcome!
Storybook
Join the community
6,565 developers and counting
WhyWhy StorybookComponent-driven UI
DocsGuidesTutorialsChangelogTelemetryStatus
CommunityAddonsGet involvedBlog
ShowcaseExploreProjectsComponent glossary
Open source software
Storybook

Maintained by
Chromatic
Special thanks to Netlify and CircleCI