ChatMessageActionsComponent
Default action buttons that appear under each assistant message: regenerate, copy-to-clipboard, thumbs up, thumbs down.
Hidden by default, fades in on :hover/:focus-within of the parent
chat-message, and stays visible on the current/last assistant message
and on mobile.
import { ChatMessageActionsComponent } from '@threadplane/chat';Declaration
export declare class ChatMessageActionsComponent {
readonly content: import("@angular/core").InputSignal<string>;
readonly contentCopied: import("@angular/core").OutputEmitterRef<string>;
readonly disabled: import("@angular/core").InputSignal<boolean>;
readonly rate: import("@angular/core").OutputEmitterRef<"up" | "down">;
readonly regenerate: import("@angular/core").OutputEmitterRef<void>;
}Angular template API
Selector: chat-message-actions
Inputs
contentstringdisabledboolean
Outputs
contentCopiedstringrate"up" | "down"regeneratevoid
Members
content
Plain text content to copy. Required for the copy button to function.
readonly content: import("@angular/core").InputSignal<string>;contentCopied
Emitted with the copied content after a successful clipboard write.
readonly contentCopied: import("@angular/core").OutputEmitterRef<string>;disabled
When true, the regenerate button is disabled (e.g. while the agent is streaming).
readonly disabled: import("@angular/core").InputSignal<boolean>;rate
Emitted with 'up' or 'down' when the user rates the response.
readonly rate: import("@angular/core").OutputEmitterRef<"up" | "down">;regenerate
Emitted when the user clicks regenerate. Wire this to agent.regenerate(index).
readonly regenerate: import("@angular/core").OutputEmitterRef<void>;