Skip to content

The Open Standard for Generative UI

Polish OpenUI Cloud docs callouts (#858)

Zahle Khanbcfb4952cd6d
diff --git a/docs/content/docs/openui-lang/components/openui-cloud-callout.tsx b/docs/content/docs/openui-lang/components/openui-cloud-callout.tsx
new file mode 100644
index 000000000..2ecc1a961
--- /dev/null
+++ b/docs/content/docs/openui-lang/components/openui-cloud-callout.tsx
@@ -0,0 +1,24 @@
+import { ArrowRight } from "lucide-react";
+import Link from "next/link";
+
+interface OpenUICloudCalloutProps {
+ description: string;
+}
+
+export function OpenUICloudCallout({ description }: OpenUICloudCalloutProps) {
+ return (
+ <aside className="not-prose my-6 rounded-xl border border-fd-border bg-fd-muted/30 px-4 py-3.5 text-fd-foreground">
+ <p className="m-0 text-base leading-7">{description}</p>
+ <Link
+ href="/compare?pair=markdown-cloud"
+ className="group mt-3 inline-flex items-center gap-1.5 rounded-lg border border-fd-border bg-transparent px-3 py-1.5 text-sm font-semibold text-fd-foreground no-underline transition-colors hover:bg-fd-accent/60 focus-visible:ring-2 focus-visible:ring-fd-ring focus-visible:ring-offset-2 focus-visible:outline-none"
+ >
+ Try OpenUI Cloud
+ <ArrowRight
+ className="size-4 transition-transform group-hover:translate-x-0.5"
+ aria-hidden="true"
+ />
+ </Link>
+ </aside>
+ );
+}
diff --git a/docs/content/docs/openui-lang/defining-components.mdx b/docs/content/docs/openui-lang/defining-components.mdx
index fb3cb1ec4..217f305ff 100644
--- a/docs/content/docs/openui-lang/defining-components.mdx
+++ b/docs/content/docs/openui-lang/defining-components.mdx
@@ -3,16 +3,11 @@ title: Defining Components
description: Define OpenUI components with Zod and React renderers.
---
+import { OpenUICloudCallout } from "./components/openui-cloud-callout";
+
Use `defineComponent(...)` to register each component and `createLibrary(...)` to assemble the library.
-<Callout
- type="info"
- icon={<span className="hidden" aria-hidden="true" />}
- className="my-6 border-fd-border bg-fd-muted/30 px-4 py-3.5 ps-4 shadow-none [&>div:first-child]:hidden"
->
- Start with responsive, accessible components for dashboards, forms, reports, and slides. [Explore
- OpenUI Cloud](/docs/openui-cloud/build/chat#built-in-component-library)
-</Callout>
+<OpenUICloudCallout description="Start with responsive, accessible components for dashboards, forms, reports, and slides." />
## Core API
diff --git a/docs/content/docs/openui-lang/how-it-works.mdx b/docs/content/docs/openui-lang/how-it-works.mdx
index f6c1e6aa3..d747a6e0d 100644
--- a/docs/content/docs/openui-lang/how-it-works.mdx
+++ b/docs/content/docs/openui-lang/how-it-works.mdx
@@ -3,6 +3,8 @@ title: Architecture
description: Build dashboards, CRUD interfaces, and monitoring tools. The LLM generates the UI once, then your app runs independently.
---
+import { OpenUICloudCallout } from "./components/openui-cloud-callout";
+
## The problem today
In most AI-powered applications, when a user interacts with a generated UI (filtering data, submitting a form, refreshing a view), the request goes back through the LLM. The model re-processes the context, calls tools, and regenerates the response. Every click costs tokens. Every interaction adds latency.
@@ -26,14 +28,7 @@ The Renderer parses the generated code. When it encounters a `Query("list_ticket
The LLM generated the wiring. The runtime executes it.
-<Callout
- type="info"
- icon={<span className="hidden" aria-hidden="true" />}
- className="my-6 border-fd-border bg-fd-muted/30 px-4 py-3.5 ps-4 shadow-none [&>div:first-child]:hidden"
->
- Keep generative UI reliable with output correction, model fallbacks, and monitoring. [Explore
- OpenUI Cloud](/docs/openui-cloud/production-readiness).
-</Callout>
+<OpenUICloudCallout description="Keep generative UI reliable with output correction, model fallbacks, and monitoring." />
## What this enables
diff --git a/docs/content/docs/openui-lang/index.mdx b/docs/content/docs/openui-lang/index.mdx
index 274a155a4..002a5d3c6 100644
--- a/docs/content/docs/openui-lang/index.mdx
+++ b/docs/content/docs/openui-lang/index.mdx
@@ -3,18 +3,12 @@ title: Introduction
---
import { StreamingComparison } from "@/app/docs/openui-lang/streaming-comparison";
+import { OpenUICloudCallout } from "./components/openui-cloud-callout";
import { TryItOut } from "./components/try-it-out";
OpenUI is a full-stack, renderer-agnostic Generative UI framework built around a compact, streaming-first language. It offers official React support with built-in component libraries and ready-to-use chat interfaces, plus community-supported integrations for other frameworks. OpenUI Lang uses up to **[67% fewer tokens](/docs/openui-lang/benchmarks)** than JSON. Generate anything from rich chat responses to [fully interactive dashboards](/docs/openui-lang/how-it-works).
-<Callout
- type="info"
- icon={<span className="hidden" aria-hidden="true" />}
- className="my-6 border-fd-border bg-fd-muted/30 px-4 py-3.5 ps-4 shadow-none [&>div:first-child]:hidden"
->
- Take generative UI to production with responsive interfaces, editable artifacts, and built-in
- reliability. [Explore OpenUI Cloud](/docs/openui-cloud/build/chat)
-</Callout>
+<OpenUICloudCallout description="Take generative UI to production with responsive interfaces, editable artifacts, and built-in reliability." />
## What is Generative UI?
diff --git a/docs/content/docs/openui-lang/overview.mdx b/docs/content/docs/openui-lang/overview.mdx
index e99a6dfdb..ac700f27a 100644
--- a/docs/content/docs/openui-lang/overview.mdx
+++ b/docs/content/docs/openui-lang/overview.mdx
@@ -4,6 +4,7 @@ description: Key building blocks of the OpenUI framework and the built-in compon
---
import { LangExample } from "./components/lang-example";
+import { OpenUICloudCallout } from "./components/openui-cloud-callout";
OpenUI is built around four core building blocks that work together to turn LLM output into rendered UI:
@@ -15,14 +16,7 @@ OpenUI is built around four core building blocks that work together to turn LLM
- **Renderer**: The `<Renderer />` React component takes parsed output and maps each element to your library's React components, rendering the UI progressively as the stream arrives.
-<Callout
- type="info"
- icon={<span className="hidden" aria-hidden="true" />}
- className="my-6 border-fd-border bg-fd-muted/30 px-4 py-3.5 ps-4 shadow-none [&>div:first-child]:hidden"
->
- Monitor model usage, latency, errors, and render success. [Explore OpenUI
- Cloud](/docs/openui-cloud/production-readiness#observability).
-</Callout>
+<OpenUICloudCallout description="Monitor model usage, latency, errors, and render success." />
## Built-in Component Libraries