Skip to content

PreviewBridgeProps

optional banner?: boolean

Show the “Draft preview” banner when this page was opened by Composer (not framed). Default true.


optional children?: ReactNode


optional origins?: readonly string[]

Origins Composer may speak from. Default https://content.ebitex.io; add your own for a self-hosted Composer or local development.


optional path?: string

Your router’s current pathname — posted to Composer as navigated when it changes (Browse mode follows links).


optional scope?: "page" | "app"

'page' (default): the bridge replaces children with <Experience result> once a document arrives. 'app' wraps the whole app instead — children always render, and <Experience path> inside them reads the posted document from context rather than fetching, so a <StandaloneComponent> sitting outside any one page’s own root (a header, a footer) can still preview.