mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
# Conflicts: # addons/comments/package.json # addons/links/package.json # addons/storyshots/package.json # examples/cra-kitchen-sink/.storybook/addons.js # examples/cra-kitchen-sink/package.json # examples/cra-kitchen-sink/src/stories/__snapshots__/addon-info.stories.storyshot # yarn.lock
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