API reference: @salmonui/rich-text
ContentEditableMentionOptionsinterface
import type { ContentEditableMentionOptions } from '@salmonui/rich-text';interface ContentEditableMentionOptions {
readonly chipClassName?: string;
readonly spacer?: string;
readonly createChip?: (insertion: MentionEditorInsertion, doc: Document) => HTMLElement;
}
| Name | Signature | Description |
|---|---|---|
chipClassNameoptional | readonly chipClassName?: string; | Class of the inserted chip (default |
spaceroptional | readonly spacer?: string; | Text placed after a chip when the trigger has no |
createChipoptional | readonly createChip?: (insertion: MentionEditorInsertion, doc: Document) => HTMLElement; | Builds the chip; the default is a |