Masked API key field with a show/hide eye toggle and a copy button, tagged with the env var name.
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Ai21 } from "@/components/beste/piece/ai21";
<Ai21
label="OPENAI_API_KEY"
value="sk-proj-8fK2p3nR4vX7qW9sL1mT6bY0aZ"
/>Thumbs up and down buttons with tinted active state, alongside copy and share actions.
{
"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.
Attached image card with a tone-tinted thumbnail tile, a scanning line overlay, filename, dimensions, and detected-object chips.
Live token visualizer with tone-tinted token chips, tokens-per-second rate, and a pulsing caret at the end.
Context-window card with a tokens-used-of-max readout and a violet-to-fuchsia gradient fill bar.