# MentionBeforeInsertEvent (@salmonui/dropdowns/mention)

> The MentionBeforeInsertEvent interface of @salmonui/dropdowns/mention.

Canonical: https://salmonui.dev/docs/reference/dropdowns/mention/MentionBeforeInsertEvent

```ts
import type { MentionBeforeInsertEvent } from '@salmonui/dropdowns/mention';
```

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

## Reference

Kind: interface

```ts
interface MentionBeforeInsertEvent<T = MentionItem> extends MentionInsertEvent<T> {
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `preventDefault` | `preventDefault(): void;` |  | Cancels the insertion; the list stays open. |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `item` | `item: T;` | inherited |  |
| `text` | `text: string;` | inherited | The text that replaces the trigger and the search text. |
| `trigger` | `trigger: string;` | inherited | The trigger character that started this mention. |
| `source` | `source: MentionEventSource;` | inherited |  |
