Skip to main content
Version: v1 (Current)

Chat Transcript

Generated from public Vue/TypeScript exports by pnpm docs:generate. Edit source comments and stories to update this reference. Types describe the declared API; browser/device constraints are covered in the guides. This catalog reflects source commit fc6bfb108634735f1657e533206c3f8702ad357d; match your installed package and typed manifest before using an export. Source review does not establish registry-release availability.

ChatTranscript​

import { ChatTranscript } from '@gxp-dev/app-ui'

Repository source

Props​

NameTypeRequired / defaultDescription
messagesChatMessage[]RequiredArray of chat messages to display
autoScrollboolean | undefinedtrueAuto-scroll to bottom on new messages (default: true)
showTimestampsboolean | undefinedtrueShow timestamps (default: true)
relativeTimeboolean | undefinedtrueUse relative time format via timeAgo (default: true)
showRoleLabelsboolean | undefinedtrueShow role labels (default: true)
roleLabelsPartial<Record<MessageRole, string>> | undefined{}Custom role labels
typingTextstring | undefined"Typing..."Text shown when typing indicator is active
isTypingboolean | undefinedfalseWhether the assistant is currently typing/generating
liveUserTextstring | undefined""Live transcription text (user speaking)
liveAssistantTextstring | undefined""Live transcription text (assistant speaking)
emptyTextstring | undefined"No messages yet..."Empty state text
maxHeightstring | undefinedundefinedMaximum height in CSS units (default: none)

Events​

NameTypeRequired / defaultDescription
message-click[message: ChatMessage]——

Slots​

NameTypeRequired / defaultDescription
message{ message: ChatMessage; }——
live-user{ text: string; }——
live-assistant{ text: string; }——
typing{}——
empty{}——

Exposed methods and values​

NameTypeRequired / defaultDescription
scrollToBottom() => void——

Examples​

These are authored Storybook excerpts, not complete standalone modules. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.

Default​

import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ChatTranscript } from '.'
import type { ChatMessage } from '.'
const defaultArgs = {
messages: sampleMessages,
autoScroll: true,
showTimestamps: true,
relativeTime: true,
showRoleLabels: true,
isTyping: false,
}
{}

WithTypingIndicator​

import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ChatTranscript } from '.'
import type { ChatMessage } from '.'
const defaultArgs = {
messages: sampleMessages,
autoScroll: true,
showTimestamps: true,
relativeTime: true,
showRoleLabels: true,
isTyping: false,
}
{
args: {
isTyping: true,
},
}

WithLiveTranscription​

import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { ChatTranscript } from '.'
import type { ChatMessage } from '.'
const defaultArgs = {
messages: sampleMessages,
autoScroll: true,
showTimestamps: true,
relativeTime: true,
showRoleLabels: true,
isTyping: false,
}
{
args: {
liveUserText: 'I am currently speaking and this is being transcribed in real-time...',
},
}