ChatMessageView.from
property · packages/mixins-ui/src/chatMessage.ts:86
readonly from: ChatMessageFromMixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/chatMessage.ts:85
interface ChatMessageView<Message = never> {
readonly from: ChatMessageFrom
readonly content: Html | string
readonly author?: string | undefined
readonly avatar?: Html | undefined
readonly time?: ChatMessageTime | undefined
readonly status?: ChatMessageStatus | undefined
readonly statusLabel?: string | undefined
readonly onRetry?: Message | undefined
readonly retryLabel?: string | undefined
readonly actions?: ReadonlyArray<ChatMessageAction<Message>> | undefined
readonly actionsLabel?: string | undefined
readonly pinActions?: boolean | undefined
readonly streaming?: boolean | undefined
readonly continued?: boolean | undefined
readonly style?: NamedStyle<typeof ChatMessageSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
}A message in one call: who sent it and when, what it says, where it stands, what it offers, a style for its slots, and mixins beside the style. No upstream component stands behind it.
ChatMessageView.fromproperty · packages/mixins-ui/src/chatMessage.ts:86
readonly from: ChatMessageFromChatMessageView.contentproperty · packages/mixins-ui/src/chatMessage.ts:88
readonly content: Html | stringPlain text, or Html such as rendered Markdown.
ChatMessageView.authorproperty · packages/mixins-ui/src/chatMessage.ts:89
readonly author?: string | undefinedChatMessageView.avatarproperty · packages/mixins-ui/src/chatMessage.ts:91
readonly avatar?: Html | undefinedThe sender's picture, such as an Avatar.view.
ChatMessageView.timeproperty · packages/mixins-ui/src/chatMessage.ts:92
readonly time?: ChatMessageTime | undefinedChatMessageView.statusproperty · packages/mixins-ui/src/chatMessage.ts:93
readonly status?: ChatMessageStatus | undefinedChatMessageView.statusLabelproperty · packages/mixins-ui/src/chatMessage.ts:95
readonly statusLabel?: string | undefinedThe status as shown and read; Sending…, Sent or Not sent when omitted.
ChatMessageView.onRetryproperty · packages/mixins-ui/src/chatMessage.ts:97
readonly onRetry?: Message | undefinedWhat the retry button beside a failed status sends; a failed message without it draws none.
ChatMessageView.retryLabelproperty · packages/mixins-ui/src/chatMessage.ts:99
readonly retryLabel?: string | undefinedDefault Retry.
ChatMessageView.actionsproperty · packages/mixins-ui/src/chatMessage.ts:100
readonly actions?: ReadonlyArray<ChatMessageAction<Message>> | undefinedChatMessageView.actionsLabelproperty · packages/mixins-ui/src/chatMessage.ts:102
readonly actionsLabel?: string | undefinedNames the actions as a group; default Message actions.
ChatMessageView.pinActionsproperty · packages/mixins-ui/src/chatMessage.ts:107
readonly pinActions?: boolean | undefinedShows the actions at rest, as the latest answer shows its own; others reveal theirs on hover or focus, and always where nothing can hover.
ChatMessageView.streamingproperty · packages/mixins-ui/src/chatMessage.ts:109
readonly streaming?: boolean | undefinedThe content is still arriving: the root is aria-busy and carries data-streaming.
ChatMessageView.continuedproperty · packages/mixins-ui/src/chatMessage.ts:111
readonly continued?: boolean | undefinedFollows a message by the same sender: no picture, and a header only a reader meets.
ChatMessageView.styleproperty · packages/mixins-ui/src/chatMessage.ts:113
readonly style?: NamedStyle<typeof ChatMessageSlots> | undefinedA style of ChatMessageSlots, for the message's look.
ChatMessageView.mixinsproperty · packages/mixins-ui/src/chatMessage.ts:115
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.