Skip to content

The Open Standard for Generative UI

docs: show supported renderers under the homepage hero (#1446)

devin-ai-integration[bot]5a85af68cff6
diff --git a/docs/app/(home)/components/RendererProofLine/RendererProofLine.module.css b/docs/app/(home)/components/RendererProofLine/RendererProofLine.module.css
new file mode 100644
index 000000000..4ec7572f8
--- /dev/null
+++ b/docs/app/(home)/components/RendererProofLine/RendererProofLine.module.css
@@ -0,0 +1,104 @@
+.line {
+ display: inline-flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.5rem 0.75rem;
+ font-size: 0.875rem;
+ line-height: 1.25rem;
+ font-weight: 500;
+ color: var(--openui-text-neutral-secondary);
+ text-decoration: none;
+}
+
+.lead {
+ color: var(--openui-text-neutral-secondary);
+}
+
+.list {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.375rem;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+.item {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.375rem;
+ padding: 0.25rem 0.625rem 0.25rem 0.5rem;
+ border: 1px solid var(--openui-border-default);
+ border-radius: var(--openui-radius-full);
+ background: var(--openui-foreground);
+ color: var(--openui-text-neutral-primary);
+ transition: border-color 150ms ease;
+}
+
+.logo {
+ width: 1rem;
+ height: 1rem;
+ object-fit: contain;
+}
+
+:global([data-theme="dark"]) .logoInvertDark {
+ filter: invert(1);
+}
+
+.more {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.25rem;
+ transition: color 150ms ease;
+}
+
+.arrow {
+ width: 0.875rem;
+ height: 0.875rem;
+ transition: transform 150ms ease;
+}
+
+.line:hover .more {
+ color: var(--openui-text-neutral-primary);
+}
+
+.line:hover .arrow {
+ transform: translateX(2px);
+}
+
+.line:hover .item {
+ border-color: var(--openui-border-interactive, var(--openui-border-default));
+}
+
+.line:focus-visible {
+ outline: 2px solid var(--openui-border-interactive, currentColor);
+ outline-offset: 4px;
+ border-radius: 0.5rem;
+}
+
+/* Phones: logos only, so the line stays on one row. */
+@media (max-width: 767px) {
+ .line {
+ justify-content: center;
+ gap: 0.5rem;
+ }
+
+ .lead {
+ flex-basis: 100%;
+ text-align: center;
+ }
+
+ .item {
+ padding: 0.375rem;
+ }
+
+ .name {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ overflow: hidden;
+ clip: rect(0 0 0 0);
+ white-space: nowrap;
+ }
+}
diff --git a/docs/app/(home)/components/RendererProofLine/RendererProofLine.tsx b/docs/app/(home)/components/RendererProofLine/RendererProofLine.tsx
new file mode 100644
index 000000000..df1180a07
--- /dev/null
+++ b/docs/app/(home)/components/RendererProofLine/RendererProofLine.tsx
@@ -0,0 +1,40 @@
+import { ArrowRight } from "lucide-react";
+import Link from "next/link";
+import styles from "./RendererProofLine.module.css";
+
+const RENDERERS = [
+ { name: "React", logo: "/integration-logos/react.svg" },
+ { name: "Vue", logo: "/integration-logos/vue.svg" },
+ { name: "Svelte", logo: "/integration-logos/svelte.svg" },
+ { name: "Angular", logo: "/integration-logos/angular.svg", invertInDark: true },
+ { name: "Lynx", logo: "/integration-logos/lynx.svg", invertInDark: true },
+];
+
+/* One quiet line under the hero CTA: the renderers OpenUI ships for or has a
+ guide for, linking to the full integrations list. */
+export function RendererProofLine({ lead = "Renders in" }: { lead?: string }) {
+ return (
+ <Link className={styles.line} href="/docs/integrations">
+ <span className={styles.lead}>{lead}</span>
+ <ul className={styles.list}>
+ {RENDERERS.map((renderer) => (
+ <li key={renderer.name} className={styles.item}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ className={`${styles.logo} ${renderer.invertInDark ? styles.logoInvertDark : ""}`.trim()}
+ src={renderer.logo}
+ alt=""
+ width={16}
+ height={16}
+ />
+ <span className={styles.name}>{renderer.name}</span>
+ </li>
+ ))}
+ </ul>
+ <span className={styles.more}>
+ and more
+ <ArrowRight className={styles.arrow} aria-hidden />
+ </span>
+ </Link>
+ );
+}
diff --git a/docs/app/(home)/page.tsx b/docs/app/(home)/page.tsx
index 3748c8614..6747ee348 100644
--- a/docs/app/(home)/page.tsx
+++ b/docs/app/(home)/page.tsx
@@ -3,6 +3,7 @@ import { BASE_URL } from "@/lib/source";
import type { Metadata } from "next";
import { AGENT_SETUP_PROMPT, AgentPicker } from "./components/AgentPicker/AgentPicker";
import { LangShowcase } from "./components/LangShowcase/LangShowcase";
+import { RendererProofLine } from "./components/RendererProofLine/RendererProofLine";
import {
type ComparisonTab,
ComparisonTabs,
@@ -125,6 +126,7 @@ export default function HomePage() {
showPlaygroundButton={false}
showTagline={false}
commandTrailing={<AgentPicker command={AGENT_SETUP_PROMPT} />}
+ proofSlot={<RendererProofLine lead="One spec, rendered in" />}
/* No GitHub CTA in the hero on either breakpoint: the header carries
the star count already. Dropping githubRepoUrl takes the desktop
button; the mobile banner defaults on, so it is turned off here. */
diff --git a/docs/app/(home)/sections/HeroSection/HeroSection.module.css b/docs/app/(home)/sections/HeroSection/HeroSection.module.css
index 39cedc7c6..c39f8bc24 100644
--- a/docs/app/(home)/sections/HeroSection/HeroSection.module.css
+++ b/docs/app/(home)/sections/HeroSection/HeroSection.module.css
@@ -1276,3 +1276,10 @@
padding-inline: 1rem;
}
}
+
+.mobileProof {
+ display: flex;
+ justify-content: center;
+ margin-block: 1.25rem 0.5rem;
+ padding-inline: 1rem;
+}
diff --git a/docs/app/(home)/sections/HeroSection/HeroSection.tsx b/docs/app/(home)/sections/HeroSection/HeroSection.tsx
index 4d8e668c4..ab1a4393f 100644
--- a/docs/app/(home)/sections/HeroSection/HeroSection.tsx
+++ b/docs/app/(home)/sections/HeroSection/HeroSection.tsx
@@ -330,6 +330,7 @@ function DesktopHero({
secondaryCommandLabel,
commandSlot,
commandTrailing,
+ proofSlot,
compact,
align,
smallSubtitle,
@@ -350,6 +351,8 @@ function DesktopHero({
commandSlot?: ReactNode;
/* Rendered beside the command button, inside its row. */
commandTrailing?: ReactNode;
+ /* A short proof line under the CTAs. */
+ proofSlot?: ReactNode;
compact: boolean;
align: "center" | "left";
smallSubtitle: boolean;
@@ -425,6 +428,7 @@ function DesktopHero({
<DesktopGithubButton href={githubRepoUrl} label={githubButtonLabel} />
)}
</div>
+ {proofSlot}
</div>
</div>
);
@@ -444,6 +448,7 @@ function MobileHero({
secondaryCommandLabel,
commandSlot,
commandTrailing,
+ proofSlot,
compact,
smallSubtitle,
showCommand,
@@ -470,6 +475,8 @@ function MobileHero({
commandSlot?: ReactNode;
/* Rendered beside the command button, inside its row. */
commandTrailing?: ReactNode;
+ /* A short proof line under the CTAs. */
+ proofSlot?: ReactNode;
compact: boolean;
smallSubtitle: boolean;
showCommand: boolean;
@@ -558,6 +565,7 @@ function MobileHero({
)}
{showPlaygroundButton && <MobilePlaygroundButton className={styles.mobileCtaButtonWidth} />}
</div>
+ {proofSlot && <div className={styles.mobileProof}>{proofSlot}</div>}
{/* Mobile hero image */}
{showPreview && (
@@ -693,6 +701,7 @@ export function HeroSection({
secondaryCommandLabel,
commandSlot,
commandTrailing,
+ proofSlot,
compact = false,
align = "center",
smallSubtitle = false,
@@ -734,6 +743,8 @@ export function HeroSection({
commandSlot?: ReactNode;
/* Rendered beside the command button, inside its row. */
commandTrailing?: ReactNode;
+ /* A short proof line under the CTAs. */
+ proofSlot?: ReactNode;
compact?: boolean;
/** Horizontal alignment of the desktop hero content (default "center"). */
align?: "center" | "left";
@@ -800,6 +811,7 @@ export function HeroSection({
secondaryCommandLabel={secondaryCommandLabel}
commandSlot={commandSlot}
commandTrailing={commandTrailing}
+ proofSlot={proofSlot}
compact={compact}
align={align}
smallSubtitle={smallSubtitle}
@@ -821,6 +833,7 @@ export function HeroSection({
secondaryCommandLabel={secondaryCommandLabel}
commandSlot={commandSlot}
commandTrailing={commandTrailing}
+ proofSlot={proofSlot}
compact={compact}
smallSubtitle={smallSubtitle}
showCommand={showCommand}