API reference
@salmonui/dropdowns/mention
19 exported symbols: 1 component, 11 interfaces, 6 types and 1 constant. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/dropdowns/mention';Components
Interfaces
MentionBeforeInsertEventMentionEditorInsertionWhat Mention asks an editor target to insert.MentionEditorTargetA rich text surface Mention attaches to instead of a <textarea> or <input>: a plain contenteditable element through createContentEditableMentionTarget, or the…MentionInsertEventMentionItemDefault item shape: { value, label, disabled }; a string or number is its own value and label.MentionLocaleTextMentionOpenChangeEventMentionPropsMentionRenderItemContextMentionSearchChangeEventMentionTrigger
Types
MentionDataLocal items or a remote source.MentionDataSourceRemote suggestions: any @salmonui/data source (or another object with the structural read() of the Data Grid data source contract). The search text is sent as…MentionEventSourceWhat the change and insert callbacks report as the cause.MentionOpenChangeReasonMentionPartMentionSearchOperator'startsWith' | 'contains' | 'endsWith' or a predicate; Mention defaults to 'contains'.