Panels
Conversation Panel
Panel component with tabs for conversation and metrics
The ConversationPanel component provides a tabbed interface combining conversation display and metrics. It includes a conversation tab for message history and a metrics tab for performance data.
import { ConversationPanel } from "@pipecat-ai/voice-ui-kit";
<div className="h-96 w-full">
<ConversationPanel />
</div>| Prop | Type | Default |
|---|---|---|
noConversation? | boolean | false |
noMetrics? | boolean | false |
conversationElementProps? | Partial<ConversationProps> | undefined |
noTextInput? | boolean | false |
noFunctionCalls? | boolean | false |
textRenderMode? | "karaoke" | "captions" | "instant" | "karaoke" |
noTextRenderModeSwitch? | boolean | false |
Usage
Conversation Only
Show only the conversation tab.
import { ConversationPanel } from "@pipecat-ai/voice-ui-kit";
<div className="h-96 w-full">
<ConversationPanel noMetrics={true} />
</div>Metrics Only
Show only the metrics tab.
import { ConversationPanel } from "@pipecat-ai/voice-ui-kit";
<div className="h-96 w-full">
<ConversationPanel noConversation={true} />
</div>Tabs
The panel includes two tabs:
- Conversation: Displays message history using the Conversation component
- Metrics: Displays performance metrics using the Metrics component
The default tab is "conversation" unless noConversation is true, in which case it defaults to "metrics".
Integration
The ConversationPanel component uses:
Tabscomponent for tabbed interfaceConversationcomponent for message displayMetricscomponent for performance dataPanelcomponent for consistent styling
It must be used within:
PipecatClientProvidercontext (for conversation state and metrics)
Changelog
- v0.10.0
ConversationProvideris no longer required. Conversation state is now provided byPipecatClientProviderfrom@pipecat-ai/client-react.
- v0.9.0
- Inherits the new
textRenderModeswitch for bot message display fromConversation.
- Inherits the new
- v0.8.0
- Added rendering of LLM function-call entries in the panel.
- Added
noFunctionCallsprop to disable function-call rendering.
- v0.7.0
- Added
botOutputRenderersprop.
- Added