storybook/lib/channel-postmessage
Michael Shilman f23a6daa88 v6.4.0-rc.3
2021-11-16 22:09:46 +08:00
..
2021-10-20 11:31:03 +02:00
2021-11-16 22:09:46 +08:00
2018-07-31 19:34:05 +03: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