JSPM

storybook-addon-monitor

0.1.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q26799F
  • License MIT

Monitor a value returned by a callback

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"

Screenshot

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' } },
};