urlPolicy, imagePolicy, or action handlers
across the Server Component serialization boundary. Define them in the Client
Component. Keep model credentials and provider calls in server-only host code;
they are not renderer configuration.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Pre-alpha: npm packages are not published yet. APIs and documentation may change. View release status.
Place Rixx UI client renderers and server-safe helpers correctly in the Next.js App Router.
// app/layout.tsx
import type { ReactNode } from "react";
import "@rixx-ui/react/styles.css";
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}
// app/assistant-message.tsx
"use client";
import { RUIRenderer, type RUIStreamStatus } from "@rixx-ui/react";
export function AssistantMessage({
source,
status,
}: {
source: string;
status: RUIStreamStatus;
}) {
return <RUIRenderer streamStatus={status}>{source}</RUIRenderer>;
}
import { fromMarkdown } from "@rixx-ui/react/server";
export default function Page() {
const source = fromMarkdown("# Server-produced source");
return <AssistantMessage source={source} status="complete" />;
}
urlPolicy, imagePolicy, or action handlers
across the Server Component serialization boundary. Define them in the Client
Component. Keep model credentials and provider calls in server-only host code;
they are not renderer configuration.