Help Center

Storybook: Native Embedding vs. Embedding iframe

Storybook: Native Embedding vs. Embedding iframe

Storybook enables you to build, test, and document your UI components.

There are two methods of integrating Storybook with zeroheight. Here are the main differences between each method.

The ‘native embed’ is designed to give a more native feel with easier resizing controls, a more intuitive interface for selecting stories in zeroheight and better handling of Storybook versions.

The ‘embedded iframe’ method embeds a single URL at a time and brings the entire contents of the page into zeroheight.

Native embedEmbedded iframe
Connects to zeroheight by adding a Storybook URL in the Styelguide settings onceConnects to zeroheight by pasting the Storybook URL in each embed block
Add stories to the styleguide via zeroheight toolbar and Storybook modalAdd stories via zeroheight toolbar and pasting story URL in the iframe
Update Storybook in zeroheight by updating the Storybook URL in the Styleguide settingsUpdate Storybook in zeroheight by pasting updated Storybook URLs in each iframe
The component will be displayed in an iframe and the controls will be displayed as zeroheight content.The component and controls will be displayed in an iframe.
Displays canvas view and docs viewDisplays canvas view and docs view
Displays codeDoesn’t display code
Displays controls add-on, other add-ons not currently supportedDisplays add-ons
Sidebar menus do not appearSidebar menus appear
Supports Storybook instance being restricted to a VPNSupports Storybook instance being restricted to a VPN