storybook/code/lib/channel-postmessage
2023-02-22 01:57:44 +08:00
..
2022-12-13 19:13:17 +01:00
2023-02-22 01:57:44 +08:00
2023-02-14 13:57:07 +01: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