
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@zeroheight/storybook-addon
Advanced tools
⚠️ Breaking change in 3.x
The env variables must be prefixed with
STORYBOOK_. If you are upgrading from version 2.x, please update your.envfile accordingly.
First, install the package.
npm install --save-dev @zeroheight/storybook-addon
You will need to add a .env to your project to add your zeroheight authentication credentials, which can be created using these instructions:
STORYBOOK_ZH_CLIENT_ID="<your zeroheight Client ID>"
STORYBOOK_ZH_ACCESS_TOKEN="<your zeroheight Access Token>"
Then, register it as an addon in .storybook/main.js.
// .storybook/main.ts
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from '@storybook/your-framework';
const config: StorybookConfig = {
// ...rest of config
addons: [
'@storybook/addon-essentials'
'@zeroheight/storybook-addon',
],
};
export default config;
package.json, run npm install to update the lockfile, and add an entry to CHANGELOG.md[skip ci] to your merge commit messageThe primary way to use this addon is to define the zeroheight parameter, which will contain a pageUrl which points to the page you wish to display. You can do this the
component level, as below, to affect all stories in the file, or you can do it for a single story.
// Button.stories.ts
// Replace your-framework with the name of your framework
import type { Meta } from '@storybook/your-framework';
import { Button } from './Button';
const meta: Meta<typeof Button> = {
component: Button,
parameters: {
zeroheight: {
pageUrl: '[page_url]', // e.g. https://developers.zeroheight.com/75fe5b2ed/p/8811ef-get
}
}
};
export default meta;
FAQs
View zeroheight documentation in your stories
We found that @zeroheight/storybook-addon demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.