Skip to content

Components ​

Every control in the pane is exported from the package root, so you can use the complete ConversationPane or assemble your own layout. This page lists each component family with the props, events and slots that customize it. See Assembling a custom layout for a worked example, and the API reference for the complete ConversationPane surface.

All components are styled by one stylesheet (@korus-dev/agent-ui-sdk/styles.css) and the semantic theme tokens. Each root element carries the agent-ui-theme class, so scoped tokens apply wherever you place it.

Choosing a component ​

You want…Use
The whole conversationConversationPane
Only the transcriptMessageList
One message, or one turn of messagesMessage, MessageTurn
Only the prompt boxComposer
A model and reasoning picker outside the composerModelPicker, or HarnessModelSelector for the button and popover the composer uses
A copy button with a check that resetsCopyButton
An approval prompt in your own chromeApprovalPrompt
A question or tool confirmationQuestionRequest, ToolConfirmation, ToolUserInputRequest
A queue, goal or diff summary above the composerComposerShelf, QueuedPrompts, Goal, TurnGitInfo
A fixed header, body and footer layoutWorkbenchLayout

Layout and chrome ​

WorkbenchLayout ​

A section with a body and optional header and footer slots. The pane uses it to keep the composer below a scrolling transcript.

The header and footer overlay the body rather than sitting beside it. The layout measures them and publishes --workbench-layout-header-offset and --workbench-layout-footer-offset, which the body should use for its padding so content is never hidden. Override --workbench-layout-header-padding, -footer-padding, -header-background, -footer-background and -body-gap to restyle it.

PropDefaultPurpose
scrollMode'body''body' scrolls the whole body; 'child' lets the body's child (such as MessageList) own scrolling

Slots: default (body), header, footer.

ConversationHistoryLoader ​

A skeleton shown while a conversation's history loads. It has no props and announces itself as role="status". The pane shows it while historyLoading is true.

ScrollToBottom ​

The floating button used by MessageList. Use it for custom scrollers.

PropDefaultPurpose
label'Scroll to bottom'Accessible label

Emits click. Size and colors are set with --agent-ui-scroll-to-bottom-size, -border, -color, -background and -shadow.

Composer controls ​

Composer ​

The prompt box: rich text, mention chips, attachments row, action menu, model selector, context usage, voice and send button. The model selector appears only when capabilities.models is on; turn it off when you render your own picker.

PropTypePurpose
disabled (required)booleanDisable input and actions
isSending (required)booleanA turn is active; the send button becomes stop and follow-ups queue or steer
composerStateComposerStateControlled draft: text, content, selection and activeCommandId
draft, draftRevisionstring, numberReplace the editor text from outside; bump the revision to force it
capabilitiesCapabilitiesControls availability of model, reasoning, steering, plan mode, goals and more
commands, skills, plugins, files, mentionGroupscatalogsSuggestion sources for /, $ and @
skillCatalogStatus, modelCatalogStatus'notLoaded' | 'loading' | 'loaded' | 'error'Catalog load state
models, selectedModelId, selectedReasoningEffort, selectedServiceTierModel, reasoning and speed selector
harnesses, harnessTabs and the selected tab of the model picker (HarnessModelSelector). Without at least two harnesses, no tabs show
planMode, permissionActive modes shown in the action menu
leadingMenuItems, menuItemsComposerMenuItem[]Host menu items. Leading items render before Plan mode
presentationConversationPresentationHide the action menu, context usage or voice
placeholder, suggestedPromptstringHint text; the suggested prompt is accepted into the draft
promptHistory, promptHistoryLoadingUp/Down recall
followUpBehavior'queue' | 'steer'Primary action while busy
queuedPromptIdstring | nullThe prompt being edited
attachEnabled, hasAttachments, hasExternalContentbooleanAttach menu entry; enable send without text
contextUsageContextUsage | nullContext window indicator
emptySendPromptstringPrompt sent when the user submits an empty draft, so attachments or external context can go out on their own
autofocusbooleanFocus on mount
transcribeAudioChatTranscriptionBatch dictation override
canContinueInterruptedTurn, interruptArmedbooleanContinue and double-Escape states

Events: send, steer, steerQueuedPrompt, interrupt, attach, menuSelect, mentionSelect, requestSkills, selectPermission, continueInterruptedTurn, error, update:composerState, update:modelId, update:reasoningEffort, update:serviceTier, update:harness, update:planMode.

Slots: before, before-meta, after-input, after, mention, suggestion-item, menu-icon, menu-item.

Exposes focus(). send and steer carry { inputMethod, content } options; forward content so selected mention targets survive their visible labels. See Composer and input.

RichTextEditor ​

The mention-aware editor Composer uses. Use it for a custom prompt field.

PropPurpose
modelValue, contentPlain text and its structured PromptPart[]
placeholder, ariaLabel, disabled, maxHeightPresentation
files, skills, plugins, mentionGroupsMention catalogs used to render chips

Emits update:modelValue, update:content, input and caret-change. Exposes RichTextEditorExpose.

ComposerSendButton ​

PropDefaultPurpose
busyfalseShow the stop state
disabledfalseDisable submit
interruptArmedfalseShow the armed-stop state after the first Escape
hoverToEnablefalseLet hover re-enable a disabled button
submitLabel, interruptLabel, interruptArmedLabelEnglishAccessible labels

Emits click.

ComposerMenu and ComposerMenuList ​

ComposerMenu is a popup button; ComposerMenuList is the same list inline. Both render ComposerMenuItem[].

PropPurpose
itemsThe menu items
pinnedItemCountKeep the first N items fixed while the rest scroll
ariaLabelAccessible label
buttonLabel, menuClass, open, disabledComposerMenu only; open supports v-model:open

Events: select (a selectable item), plus update:open on ComposerMenu. Slots: icon and item (for custom rendering), plus trigger on ComposerMenu.

Item type is one of:

TypeNotes
action, customcloseOnSelect, danger, leadingColor
checkboxchecked, accessory: 'check' | 'switch' | Component
radiochecked
submenuitems, optional selectAction, submenuAlignment, submenuWidth
headinglabel with optional header actions
separatorA divider

Every item also takes id, label, description, disabled, icon, payload, value, valueAppearance and value icon fields. payload returns unchanged in select.

ComposerActionMenu and ComposerActiveModes ​

ComposerActionMenu is the plus menu. It combines attach, permissions, goal mode, plan mode and host items.

PropPurpose
attachEnabled, disabledAttach entry state
leadingMenuItems, itemsHost items before and after the built-in ones
permission, permissions, showPermissionMenuPermission submenu
planMode, showPlanMode, goalMode, showGoalModeMode toggles

Emits attach, select, selectPermission, update:planMode, update:goalMode. ComposerActiveModes shows the active plan mode and command as removable chips (planMode, command; emits disablePlanMode, removeCommand).

Suggestion menus ​

The menus the composer opens for /, $ and @. Each takes an activeIndex and the visible items, and emits a select event.

ComponentPropsEvents
ComposerSlashMenuvisibleCommands, visibleSkillsselectCommand, selectSkill
ComposerSkillMenuvisibleSkills, plugins
ComposerPluginMenuvisiblePlugins
ComposerFileMentionMenuvisibleFiles, showHint
ComposerAtMentionMenumentionGroups, visibleFiles, visiblePlugins, showFileHintselect-file, select-plugin, select-mention

ComposerAtMentionMenu has a mention slot to render host items. The filtering helpers (filterComposerCommands, filterComposerSkills, filterComposerPlugins, filterComposerMentionGroups) are exported for custom menus.

Shelf ​

The area above the composer.

ComponentPropsEvents
ComposerShelfgoal, queuedPrompts, turnGitDiff, presentation, disabled, queuedPromptEditDisabled, queuedPromptSteerDisabledclearGoal, editGoal, editQueuedPrompt, deleteQueuedPrompt, steerQueuedPrompt
QueuedPromptsprompts, editDisabled, steerDisablededit, delete, steer
QueuedPromptprompt, editDisabled, steerDisablededit, delete, steer
Goalgoaledit, clear
TurnGitInfodiff (TurnGitDiff)
ComposerDrawerSlot container stacked above the composer
ComposerDrawerRowSlots leading, default and actions
AnimatedDiffStatkind, label, value

ComposerShelf forwards drawers and actions slots (the pane exposes them as composer-drawers and composer-shelf-actions). Use ComposerDrawer and ComposerDrawerRow to add your own rows with the SDK's look.

Model controls ​

ModelPicker is a standalone model, reasoning and speed list. HarnessModelSelector wraps it in a button and popover, and is the composer's model selector.

ModelPicker propDefaultPurpose
models (required)ModelOption[]
selection (required){ model, reasoningEffort, serviceTier }
disabled, loadingfalseState
modelLabel, serviceTierLabel, standardTierLabel, loadingLabelEnglishLabels

Emits update:selection and select.

HarnessModelSelector ​

A button that shows the current model and opens a popover with one tab per harness above that harness's models, with reasoning choices and a speed button that cycles through the model's speeds. It is the composer's model selector, and you can use it on its own, for example for an "Agent" field in a form. It is plain Vue and CSS, with no extra peer dependencies.

PropDefaultPurpose
models (required)The ModelOption[] of the selected harness
selection (required){ model, reasoningEffort, serviceTier }
harnesses[]{ id, label, icon? }[] offered as tabs. Tabs appear from two harnesses on; you supply the icon component
harnessThe id of the selected harness
placement'bottom''top' opens above the trigger, as in the composer
align'start''start' opens rightward from the trigger's left edge; 'end' lines up with its right edge. Either way the popover stays inside the viewport
disabled, loadingfalseState; loading shows placeholder rows

Emits update:selection (a whole ModelSelection) and update:harness (the tab's id). The SDK never loads catalogs: when the harness changes, your host loads that harness's models and picks a selection. Wording comes from the chat.modelSelector.* translation keys. The popover and its submenus are fixed-position, placed from the trigger and kept inside the viewport (they flip or clamp at the edges), so dialogs and scrolling containers do not clip them. A long model list scrolls inside the popover while the header (tabs and speed button) stays put. With fewer than two harnesses, the current harness's icon shows where the tabs would be.

vue
<HarnessModelSelector
  :models="catalog[harness]"
  :selection="selection"
  :harnesses="[{ id: 'codex', label: 'Codex', icon: CodexIcon }, { id: 'claude', label: 'Claude', icon: ClaudeIcon }]"
  :harness="harness"
  @update:harness="id => { harness = id; selection = defaultSelectionFor(id); }"
  @update:selection="selection = $event"
/>

Voice ​

ComponentPropsPurpose
ComposerVoiceButtonrecording, label, title, disabledMicrophone toggle; emits toggle
ComposerVoiceFieldrecording, starting, transcript, audioLevel, before, afterLive transcript and level while recording
ContextUsageIndicatorcontextUsageContext window ring

useComposerVoice(options) owns recording, transcription and cleanup for a custom voice UI. It takes isDisabled, isSending, onTranscript, and optional transcribeAudio or streamingTranscription overrides, and returns refs for isRecording, isTranscribing, isStarting, transcript, audioLevel, error, plus toggle, stop, cancel and dispose. Dictation uses the host speech capability; see native capabilities.

MentionChip ​

Renders a file, plugin or skill mention: kind, name and optional iconUrl.

Messages ​

MessageList ​

The transcript. It handles lazy mounting, scroll stickiness, turn grouping and the thinking placeholder.

PropDefaultPurpose
messages (required)ChatMessage or harness Message values
turnsGroups messages into turns and powers summary details
busy, activeTurnIdStreaming state
renderStrategy'lazy''eager' mounts everything
initialMessageBatchSize, messageBatchSizeLazy mounting batches
hasOlderMessages, loadingOlderMessagesOlder-history loader
resetKeyReset scroll when the conversation changes
canDeleteTurn, canEditTurn, canForkTurn, canRetryTurn, actionsDisabled, followUpsDisabledMessage action policy
deletingTurnIdShow the delete-in-progress state
presentationHide message actions or tool blocks
toolVisibilityHide tool calls from the transcript
showToolDetailsShow raw tool details
transformMessageAdjust each message before rendering
openImageHost image opener
skills, plugins, mentionGroupsRender mention chips in user messages
answeredClientRequestIds, hiddenClientRequestIdsRequest display state
messageTextSelectionfalseEmit selection changes for quote UIs
emptyLabel, scrollToBottomLabel, ariaLabel, bottomThresholdLabels and scroll threshold

Events: client-response, cancel, copy-message, delete-turn, edit-turn, fork-turn, retry-turn, quote-message, send-follow-up, load-older-messages, load-turn-history, open-link, open-visualization, message-text-selection-change, stickiness-change.

Slots: message, header, block, text, attachment, tool, actions, status, thinking, mention, empty. Exposes scrollToBottom().

Message and MessageTurn ​

Message renders one message with the same props and slots as MessageList for its scope: message (required), index, presentation, canDeleteTurn, canEditTurn, canForkTurn, canRetryTurn, actionsDisabled, actionsAlwaysVisible, deletingTurn, followUpsDisabled, threadActionsDisabled, showToolDetails, openImage, skills, plugins, mentionGroups, answeredClientRequestIds, hiddenClientRequestIds, activityState.

MessageTurn renders the entries of one turn with the work group: entries (required), showToolBlocks (required), active, status, turnId, startedAt, durationMs, itemsView ('summary' | 'full'), detailsLoading, detailsError, workPhases (the harness states each text part's phase; otherwise the work group has no details toggle). It emits loadTurnHistory.

MessageBlock and UserText ​

MessageBlock renders one block (Markdown text, tool, media, mermaid, visualization or custom). Its props are block and the same host props as Message. Slots: block, text, tool, media, mention, mermaid, visualization.

UserText renders authored user text with mention chips: content, optional promptContent, skills, plugins, mentionGroups. parseUserText and parseAuthoredUserText expose the tokens.

MessageActions and MessageEditor ​

ComponentPropsEvents
MessageActionsmessage, canDelete, canEdit, canFork, canRetry, deleting, mutationDisabled, iconsVisible, copyAction, presentationcopy, delete, edit, fork, quote, retry
MessageEditorcontent, promptContent, inputLabel, saveLabel, cancelLabelsave(content, options?), cancel

Other message pieces ​

ComponentPropsPurpose
FollowUpsprompts, disabledSuggested prompts; emits send-follow-up
CompactionMessagerunningTitle, completedTitle, statusContext compaction row
WorkGroupactive, finalStarted, continuationCollapsible work-so-far section
FoldTransitionopenAnimated fold
IconButtonlabel, title, bordered, danger, disabled, href, download, target, relIcon button used throughout
CopyButtonaction, label, copiedLabel, size, disabledCopy button that confirms with a check; see below
UltrafastIconsize (16)The lightning icon the speed button shows for the ultrafast tier

CopyButton ​

An icon button that copies through your action and confirms with a check.

PropDefaultPurpose
action (required)Does the copy. May return a promise
label (required)The accessible name, which never changes, and the tooltip before copying
copiedLabel (required)The tooltip while the check shows
size'regular''small' shrinks the button and its icon; 'regular' follows --chat-message-action-control-size
disabledfalseDisable the button

The default slot renders a text label beside the icon. The check returns to the copy icon after 1.5 seconds, and the timer is cleared on unmount. When action throws or rejects the button shows no check and does not rethrow, so your code reports its own error.

vue
<CopyButton size="small" label="Copy link" copied-label="Copied" :action="() => navigator.clipboard.writeText(url)">Copy</CopyButton>

Rich blocks ​

ComponentPropsNotes
MediaBlockmedia, openImageGenerated and tool-result media
AttachmentBlockattachment, openImageFile and image attachments
MermaidBlockcodeMermaid diagram with copy
VisualizationBlockpath, titleHost-opened visualization card
ImageLightboxopen, src, alt, label, closeLabel, reference, themeSourceFullscreen image, with gallery navigation. Emits close

Custom assistant fences render through custom blocks.

Tools ​

ComponentPropsNotes
ToolGrouptoolCalls, activityTitle, showToolDetails, answeredClientRequestIdsA run of tool calls collapsed under one activity title
ToolCalltoolCall, expandable, detailsExpanded, showToolDetails, summaryOnly, headerlessOne call. Emits toggle-details, open-link, client-response, cancel
ToolCallTitletitle, titlePrefix, titleTarget, titleTargetLink, lineDiff, running, icon, toolPresentationThe call's title row
ToolIcontoolCall, presentationThe call's icon

Customize icons and titles with provideToolPresentation; hide calls with toolVisibility.

Requests ​

ComponentPropsEvents
ApprovalPromptapproval (ProviderApprovalRequest), disabledresolve(decision, scope)
QuestionRequestrequest, historical, answeredClientRequestIdsclient-response
ToolConfirmationtoolCall, answeredClientRequestIdsclient-response
ToolUserInputRequesttoolCall, historical, answeredClientRequestIdsclient-response

See Requests and approvals for the lifecycle and response helpers.

Documents and browser ​

MarkdownPanel, SourcePreviewPanel, DiffPreviewPanel, AnnotationPopup and CodeSelectionAnnotation are covered in Documents. BrowserPanel, BrowserBookmarks and AnnotationSendButton are covered in the browser panel guide.

Released under the Apache License 2.0.