1 | # Storybook PostMessage Channel
|
2 |
|
3 | Storybook PostMessage Channel is a channel for Storybook that can be used when the Storybook Renderer runs inside an iframe or a child window.
|
4 | A channel can be created using the `createChannel` function.
|
5 |
|
6 | ```js
|
7 | import { createChannel } from '@storybook/channel-postmessage';
|
8 |
|
9 | const channel = createChannel({ key: 'postmsg-key' });
|
10 | ```
|
11 |
|
12 | ---
|
13 |
|
14 | For more information visit: [storybook.js.org](https://storybook.js.org)
|