DotNaos UI

Composer

Chat Composer from the Chat package.

Source code

Waiting for the preview before loading source files · 2 of 2

Properties

Public properties derived from the component’s TypeScript signature.

PropertyTypeDefault
allowSubmitWhileBusyOptional
boolean
false
attachmentsOptional
readonly File[]
[]
valueRequired
string
onChangeRequired
(value: string) => void
onSubmitRequired
(value: string, attachments: readonly File[], mode: ChatSubmitMode) => void
controlsOptional
readonly ChatComposerControl[]
[]
contextUsageOptionalContext used, as a fraction from 0 to 1. Omit when unavailable.
number
onDictationOptionalHost-provided audio actions; omitted actions are not rendered.
(() => void)
onVoiceOptional
(() => void)
disabledOptional
boolean
false
onAttachmentsChangeOptional
((attachments: readonly File[]) => void)
onAttachmentSelectOptional
(() => void)
onStopOptional
(() => void)
onSuggestionSelectOptional
((suggestion: ChatSuggestion) => void)
placeholderOptional
string
"Message"
queueSubmitLabelOptional
string
"Queue message"
stateOptional
"error" | "idle" | "streaming" | "waiting"
"idle"
stopLabelOptional
string
"Stop"
submitLabelOptional
string
"Send"
submitModeOptional
"send" | "steer"
"send"
queueSubmitShortcutOptional
boolean
false
suggestionsOptional
readonly ChatSuggestion[]
[]