storybook/lib/channel-postmessage
Michael Shilman f57888b0e3 v5.3.0-beta.0
2019-11-16 23:28:25 +08:00
..
2019-10-03 11:08:40 +02:00
2019-11-16 23:28:25 +08:00

Storybook PostMessage Channel

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