React
Mount in React
Mount OzzyRM in any React-based app with client or server helpers.
OzzyRM ships a React docs UI. You can mount it in any React-based app that can:
- Load an
ozzyrm.config.ts(or pass a prebuilt catalog) - Render a client component (or a server wrapper that does)
Next.js App Router is a common host for OzzyRMDocsFromConfig, but it is not required. Vite, Remix, custom RSC setups, and plain React clients all work with the right entry.
Choose an entry
| Import | Best when |
|---|---|
ozzyrm/react (OzzyRMDocs) | You already have a catalog in the client |
ozzyrm UI mount() | Framework-agnostic DOM mount |
ozzyrm/react/server (OzzyRMDocsFromConfig) | Server can import config and call loadCatalog (RSC / Node) |
Minimal client mount
"use client";
import { OzzyRMDocs } from "ozzyrm/react";
import type { SchemaCatalogGroup } from "ozzyrm/ui";
export function SchemaDocsPage({
catalog,
defaultSchemaId,
}: {
catalog: SchemaCatalogGroup[];
defaultSchemaId?: string;
}) {
return (
<OzzyRMDocs
catalog={catalog}
defaultSchemaId={defaultSchemaId}
/>
);
}Load the catalog on the server (or in a loader) with loadCatalog, then pass it down as props.
Props shared by the UI
| Prop | Purpose |
|---|---|
catalog | Schema catalog groups from loadCatalog |
defaultSchemaId | Initial source / unified version id |
basePath | Optional base path metadata for the shell |
logoSrc | Optional brand mark (scheme-filtered) |
Glossary badges always open https://ozzyrm.vercel.app/docs/glossary/... in a new tab.