Module chat_widget

Source
Expand description

Stateful chat transcript and resizable composer control.

Structs§

ChatComposerControls
Composer select choices, availability, run state, and height bounds.
ChatComposerOption
One value/label pair shown in a composer select.
ChatWidget
Stateful transcript with message actions and a controlled composer.
ChatWidgetStyle
Colors, typography, radii, spacing, and preferred size of a ChatWidget.

Enums§

ChatWidgetAction
User intent emitted by the transcript and composer.

Type Aliases§

ChatMessageRenderer
Shared renderer replacing the built-in message bubble for every message.
ChatWidgetActionHandler
Shared context-aware handler for every ChatWidgetAction.
ChatWidgetCopyHandler
Shared context-aware handler for a message ID and copied text.
ChatWidgetRetryHandler
Shared context-aware handler for a retryable message ID.
ChatWidgetSendHandler
Shared context-aware handler for submitted composer text.