# MentionTrigger (@salmonui/dropdowns/mention)

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

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

```ts
import type { MentionTrigger } 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 MentionTrigger<T = MentionItem> {
    readonly char: string;
    readonly data?: MentionData<T>;
    readonly keepChar?: boolean;
    readonly suffix?: string;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `char` | `readonly char: string;` |  | The trigger character (or string), for example `'@'` or `'#'`. |
| `data` | `readonly data?: MentionData<T>;` | optional | Suggestions for this trigger; defaults to the `Mention` `data`. |
| `keepChar` | `readonly keepChar?: boolean;` | optional | Keep the trigger character in the inserted text. |
| `suffix` | `readonly suffix?: string;` | optional | Text appended after the insertion, such as `' '` or `'\n'`. |
