Masked API key field with a show/hide eye toggle and a copy button, tagged with the env var name.
The import and the props worth knowing about, in one place.
import { Ai21 } from "@/components/beste/piece/ai21";
<Ai21
label="OPENAI_API_KEY"
value="sk-proj-EXAMPLE-NOT-A-REAL-KEY-0000"
/>{
"answer": "Use Redis INCR",
"sources": 3,
"latency_ms": 420
}Mini code viewer for a structured response, with a filename header, copy button, and a preformatted JSON preview body.
const slug = (s: string) => s.toLowerCase().replace(/\s+/g, '-');
AI code output card with a language tag, copy and regenerate actions, and a monospace block below.
Monospace prompt card with inline handlebars-style variables highlighted in violet against plain body text.