react-native-web-headroom
Version:
React Native Web Headroom
24 lines (16 loc) • 1.56 kB
Markdown
# Storybook PostMessage Channel
[](https://circleci.com/gh/storybooks/storybook)
[](https://www.codefactor.io/repository/github/storybooks/storybook)
[](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847)
[](https://bettercodehub.com/results/storybooks/storybook) [](https://codecov.io/gh/storybooks/storybook)
[](https://now-examples-slackin-rrirkqohko.now.sh/)
[](#backers) [](#sponsors)
* * *
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.
```js
import createChannel from '@storybook/channel-postmessage';
const channel = createChannel({ key: 'postmsg-key' });
```
* * *
For more information visit: [storybook.js.org](https://storybook.js.org)