Skip to main content

Frameworks - Storybook

Adding Livecycle SDK to Storybook application

In order install Livecycle on Storybook, you'll need to add Livecycle to Storybook top level application and not to the component preview iframe.
To accomplish that, install @livecycle/sdk package and add LivecycleSDK.init() logic in a newly created "manager.js" file under ".storybook" folder.
(or use existing manager.js file)

Example

// .storybook/manager.js
import LivecycleSDK from "@livecycle/sdk"
LivecycleSDK.init().catch(console.error)