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

PropTypeDefaultDescription
messageobjectundefinedAI SDK message object with usage annotations
modelstring'ai-model'Explicit model name override
tokensnumberundefinedExplicit token count override
costUSDnumberundefinedExplicit cost in USD override
reasoningTokensnumberundefinedHidden thinking tokens count
latencyMsnumberundefinedLatency in milliseconds
variant'minimal''pill''card''minimal'Visual style variant
Page 11 of 15