Transcript
function Transcript(__namedParameters?): Element;Defined in: packages/react/src/components/chat/Transcript.tsx:37
Render the live transcript for the current <VoiceRoom> as a column of bubbles.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | TranscriptProps |
Returns
Element
Example
// Basic — show the full live transcript.
<VoiceRoom agent={agent}>
<Transcript />
</VoiceRoom>
// Advanced — show separate user and agent transcript columns.
<VoiceRoom agent={agent}>
<section className="transcript-grid">
<div>
<h2>You</h2>
<Transcript role="user" />
</div>
<div>
<h2>Valora</h2>
<Transcript role="agent" />
</div>
</section>
</VoiceRoom>