@nlabs/storybook-channel-postmessage
v3.4.3
Published
[![Build Status on CircleCI](https://circleci.com/gh/nitrogenlabs/storybook.svg?style=shield)](https://circleci.com/gh/nitrogenlabs/storybook) [![CodeFactor](https://www.codefactor.io/repository/github/nitrogenlabs/storybook/badge)](https://www.codefactor
Downloads
5
Readme
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 '@nlabs/storybook-channel-postmessage';
const channel = createChannel({ key: 'postmsg-key' });
For more information visit: storybook.nitrogenlabs.com