# ConversationItemActionEvent (@salmonui/chat/conversation)

> The ConversationItemActionEvent interface of @salmonui/chat/conversation.

Canonical: https://salmonui.dev/docs/reference/chat/conversation/ConversationItemActionEvent

```ts
import type { ConversationItemActionEvent } from '@salmonui/chat/conversation';
```

Entry index: https://salmonui.dev/docs/reference/chat/conversation (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/chat/conversation.md).

## Reference

Kind: interface

```ts
interface ConversationItemActionEvent {
    readonly action: string;
    readonly message: ConversationMessage;
    readonly feedback?: 'positive' | 'negative' | undefined;
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `action` | `readonly action: string;` |  | A built-in action (`'copy'`, `'reply'`, `'pin'`, `'delete'`, `'edit'`, `'regenerate'`, `'feedback'`) or a custom item's `id`. |
| `message` | `readonly message: ConversationMessage;` |  |  |
| `feedback` | `readonly feedback?: 'positive' \| 'negative' \| undefined;` | optional | `'feedback'`: the rating the click sets (`undefined` clears it). |
| `preventDefault` | `preventDefault(): void;` |  | Cancels the built-in follow-up of a built-in action. |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
