Interface SafeContentProps

interface SafeContentProps {
    components?: SafeContentComponents;
    fallback?: ReactNode;
    resolveWikiLink?: (target: string) => undefined | string;
    source: string;
}

Hierarchy (View Summary)

Properties

The component registry for <Component/> syntax. Absent ⇒ all JSX tags inert.

fallback?: ReactNode

Rendered while the async parse is in flight (default: nothing).

resolveWikiLink?: (target: string) => undefined | string

Resolve a wikilink target to an href, within the granted mount only — a pure, synchronous, mount-scoped lookup that MUST NOT fetch or reach out of the mount. Return undefined for an unresolvable/out-of-mount target (rendered as inert text). Absent ⇒ every wikilink renders as inert text.

source: string

The untrusted Markdown/MDX-syntax source to render as data.