Skip to content

StandaloneComponent

StandaloneComponent<TContent>(__namedParameters): ReactNode

Marks one standalone, non-page Component as previewable — a site-rendered header/footer, not anything reached through the Experience tree. Outside an activated <PreviewBridge> this renders children(value) and nothing else: no wrapper element, no attribute, no registration — production markup is byte-for-byte unchanged. Inside one, it registers id (the bridge reports the full registered set to Composer as standalone { keys }, which is what lets Composer resolve and post back a draft for it) and renders children(draft ?? value), wrapped in a display: contents boundary so it gets a component-kind pin — the same envelope-boundary mechanism RenderPresentation uses, with component in place of envelope.

TContent = Record<string, unknown>

StandaloneComponentProps<TContent>

ReactNode