API reference: @salmonui/dropdowns/mention
MentionTriggerinterface
import type { MentionTrigger } from '@salmonui/dropdowns/mention';interface MentionTrigger<T = MentionItem> {
readonly char: string;
readonly data?: MentionData<T>;
readonly keepChar?: boolean;
readonly suffix?: string;
}
| Name | Signature | Description |
|---|---|---|
char | readonly char: string; | The trigger character (or string), for example |
dataoptional | readonly data?: MentionData<T>; | Suggestions for this trigger; defaults to the |
keepCharoptional | readonly keepChar?: boolean; | Keep the trigger character in the inserted text. |
suffixoptional | readonly suffix?: string; | Text appended after the insertion, such as |