Documentation/React Suite/<VibezReceipt />
<VibezReceipt />
A clean, verified micro-badge rendered directly below AI assistant responses. It gives your users radical transparency into the compute power, reasoning time, and exact cost of their answer.
Adding to Assistant Messages
tsx
import { useVibezChat, VibezReceipt } from 'vibezcheck/react';export default function Chat() { const { messages } = useVibezChat(); return ( <div className="space-y-4"> {messages.map((m) => ( <div key={m.id} className="p-4 rounded- bg-white border border-slate-200"> <p className="text-slate-900 text-sm">{m.content}</p> {/* ⚡ Micro-Receipt on assistant responses */} {m.role === 'assistant' && ( <VibezReceipt message={m} variant="minimal" /> )} </div> ))} </div> );}Available Props
| Prop | Type | Default | Description | ||
|---|---|---|---|---|---|
message | object | undefined | AI SDK message object with usage annotations | ||
model | string | 'ai-model' | Explicit model name override | ||
tokens | number | undefined | Explicit token count override | ||
costUSD | number | undefined | Explicit cost in USD override | ||
reasoningTokens | number | undefined | Hidden thinking tokens count | ||
latencyMs | number | undefined | Latency in milliseconds | ||
variant | 'minimal' | 'pill' | 'card' | 'minimal' | Visual style variant |
💡 Tip: Use Left / Right arrow keys to navigate guidesPage 11 of 15