storybook/code/lib/channel-postmessage
Norbert de Langen d51b4d5126
Merge branch 'next' into future/move-code-into-directory
# Conflicts:
#	code/addons/a11y/package.json
#	code/examples/preact-kitchen-sink/package.json
#	code/lib/blocks/package.json
#	code/yarn.lock
#	package.json
2022-07-25 15:25:19 +02:00
..
2022-07-21 11:24:07 +02:00
2022-07-21 11:24:07 +02:00
2022-07-21 11:24:07 +02: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