Package Exports
- storybook-addon-monitor
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (storybook-addon-monitor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Storybook Addon Monitor
Storybook Addon Monitor can be used to display data received by event handlers in Storybook.
Framework Support - Same as "Actions"
Installation
npm i -D storybook-addon-monitor
Then, add following content to .storybook/main.js
:
module.exports = {
addons: ['storybook-addon-monitor'],
};
Usage
Like actions, but only shows the last event for each monitor.
Example:
export default {
title: 'Button',
argTypes: { onClicks: { monitor: 'clicks' } },
};