OzzyRMOzzyRMDocs
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:

  1. Load an ozzyrm.config.ts (or pass a prebuilt catalog)
  2. 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

ImportBest 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

TSX
"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

PropPurpose
catalogSchema catalog groups from loadCatalog
defaultSchemaIdInitial source / unified version id
basePathOptional base path metadata for the shell
logoSrcOptional brand mark (scheme-filtered)

Glossary badges always open https://ozzyrm.vercel.app/docs/glossary/... in a new tab.

Next

On this page