API reference: @salmonui/dropdowns/mention
MentionInsertEventinterface
import type { MentionInsertEvent } from '@salmonui/dropdowns/mention';interface MentionInsertEvent<T = MentionItem> {
readonly item: T;
readonly text: string;
readonly trigger: string;
readonly source: MentionEventSource;
}
| Name | Signature | Description |
|---|---|---|
item | readonly item: T; | |
text | readonly text: string; | The text that replaces the trigger and the search text. |
trigger | readonly trigger: string; | The trigger character that started this mention. |
source | readonly source: MentionEventSource; |