@storyblok/live-preview
v0.5.2
Published
Official Live Preview integration for the Storyblok Headless CMS
Readme

Installation
npm install @storyblok/live-preview
# or
yarn add @storyblok/live-previewUsage
Live preview
Covers the most common live preview use cases with minimal setup.
import { onStoryblokEditorEvent } from "@storyblok/live-preview";
onStoryblokEditorEvent((story) => {
// update local state
});Low-level Preview Bridge access
For advanced use cases where full control is needed, the Preview Bridge can be accessed directly.
import { loadStoryblokBridge } from "@storyblok/live-preview";
const bridge = await loadStoryblokBridge(bridgeOptions);
bridge.on(["input", "change", "published"], (event) => {
// custom preview handling
});Documentation
This package is intentionally minimal. More helpers and examples will be added over time as usage expands.
Community
For help, best practices, or discussions:
Support
For bugs or feature requests, please submit an issue.
