npm.io
7.6.17 • Published 2 years ago

@storybook/channel-postmessage

Licence
MIT
Version
7.6.17
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
91.1K

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

Keywords