Domain

ChatConversationHeader

Header primitive for the active Chat conversation, composed as a sibling above Chat rather than inside it.

import { ChatConversationHeader } from '@lostgradient/chat/conversation-header';
chatconversationheader
01

Overview

Header primitive for the active Chat conversation, composed as a sibling above Chat rather than inside it.

Usage

svelte
<script lang="ts">
  import ChatConversationHeader from '@lostgradient/chat/conversation-header';
</script>

<ChatConversationHeader conversation={activeConversation} />
Live preview
02

When to use

Use when
  • Showing the active conversation title, participants, status, and export controls above a Chat transcript.
  • Building a multi-conversation chat layout where the list, header, and Chat surface are composed as siblings.
Avoid when
  • Rendering the conversation switcher — use chat-conversation-list.
  • Rendering the transcript body and composer — use chat.
03

Examples

Basic conversation header

A header derived from the active compatible conversation snapshot.

04

Props

Props for chat-conversation-header
Name Type Default Required Bindable Description
conversation ConversationHistory req Active compatible conversation snapshot.
headingLevel 2 | 3 | 4 2 Heading level for the conversation title. Default 2.
showExportActions boolean true Whether to render the built-in conversation export actions. Default true.
actions snippet Additional action controls rendered after the built-in export actions.