storybook/lib/channel-postmessage
Michael Shilman 3f97c6f175 v3.2.12
2017-10-03 00:29:46 +02:00
..
2017-09-06 00:54:12 +02:00
2017-05-26 11:21:46 +02:00
2017-10-03 00:29:46 +02:00

Storybook PostMessage Channel

Greenkeeper badge Build Status CodeFactor Known Vulnerabilities BCH compliance codecov Storybook Slack

Storybook PostMessage Channel is a channel for Storybook that can be used when the Storybook Renderer runs inside an iframe or a child window. A channel can be created using the createChannel function.

import createChannel from '@storybook/channel-postmessage';

const channel = createChannel({ key: 'postmsg-key' });

For more information visit: storybook.js.org