Skip to content

ContentProviderProps

@ebitex/content-sdk/react — the rendering half. Crawls a delivered document by dispatching at every Presentation envelope on template.externalId to a renderer you register by convention (presentations/<externalId>.tsx, default export), with a guiding fallback for everything that cannot be rendered. React is a peer dependency, never bundled.

optional children?: ReactNode


optional client?: ContentClient

Optional: a tree with renderers but no client still renders a pre-resolved document (<Experience result>), which is the SSR path and the seam a live-preview bridge injects through. Required for the hook-driven <Experience path> and the normalized strategy.


optional errorFallback?: ComponentType<ContentErrorProps>

Replaces the default developer-facing error panel.


optional fallback?: ComponentType<UnresolvedPresentationProps>

Replaces the default developer-facing panel for a Presentation that cannot be rendered.


optional loading?: ReactNode

Rendered while a renderer loads or a reference resolves. Defaults to nothing.


optional markdown?: ComponentType<MarkdownRendererProps>

Renders a RichText markdown fragment. Without one, the default shows the source with a note — pass a markdown renderer, for example one built on react-markdown.


renderers: Renderers