Back to components

Cards

Copy Code Card

A compact code surface for snippets, component recipes, and copy actions.

codecopysnippet

Installation

Copy and paste the code into your project.

Accessibility notes

Wire the copy action to visible feedback after copying.

component.tsx
<Button glow>
  Ship it
</Button>

Preview accent

TypeScript
export function CopyCodeCard() {
  return (
    <div className="w-full max-w-sm rounded-lg border border-white/12 bg-[#0b0f14]/90">
      <div className="flex items-center justify-between border-b border-white/10 px-4 py-3">
        <span className="text-xs text-slate-400">component.tsx</span>
        <button className="rounded-full bg-white/10 px-3 py-1 text-xs text-white">Copy</button>
      </div>
      <pre className="overflow-hidden p-4 text-xs leading-5 text-[#d8fffb]">{`<Button glow>\n  Ship it\n</Button>`}</pre>
    </div>
  );
}
Usage
<CopyCodeCard />

Related components

Agent SLA

Production quality

Healthy
Task success
98.4%
Target > 97%
P95 latency
1.8s
Target < 2.5s
Escalations
3.2%
Target < 5%
Monthly breach budget2 / 20

Cards

Agent SLA Scorecard

Intermediate

A compact production scorecard for tracking agent success, latency, escalations, and remaining breach budget.

agentsslaobservability
View component

API errors

Last 24 hours

0.18%

error rate

ErrorCountChange
429Rate limited28−12%
500Server error9+3%
408Timed out6−4%

Cards

API Error Summary

Intermediate

A compact error-rate table showing frequent response codes, counts, and recent movement.

apierrorsmonitoring
View component

Run estimate

$0.35cached
Input
$0.12
Output
$0.28
Cache
-$0.05

Cards

Cost Estimate Card

Beginner

A compact billing estimate with line items for token-heavy AI runs.

costbillingtokens
View component