RayCraftDocs
v1.0.3 raycraft.dev
On this page

Chat

Complete

Message list with a composer. The list is a live region that scrolls to the newest message, text is always shown as plain text, Enter sends and Shift+Enter adds a new line (MultiLine=false makes it a single line). Messages from the same author within five minutes are grouped, and a heading appears when the day changes.

Example

Chat control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
MaxLengthintLargest number of characters allowed.
MessagesIEnumerable<ChatMessage>The conversation: author, text, time and whether it is your own message.
MultiLineboolMulti-line field where Shift+Enter adds a new line (default true).
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.
TypingTextstringLine shown after the last message, for example a typing notice.

Events

EventTypeDescription
OnSendEventCallback<string>Raised with the trimmed text when the user sends.

Package

Chat is part of RayCraft Complete. Package: RayCraft.Blazor.Complete. It comes from the private RayCraft feed and needs an active license. See Getting started.