# ContentEditableMentionOptions (@salmonui/rich-text)

> The ContentEditableMentionOptions interface of @salmonui/rich-text.

Canonical: https://salmonui.dev/docs/reference/rich-text/ContentEditableMentionOptions

```ts
import type { ContentEditableMentionOptions } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: interface

```ts
interface ContentEditableMentionOptions {
    readonly chipClassName?: string;
    readonly spacer?: string;
    readonly createChip?: (insertion: MentionEditorInsertion, doc: Document) => HTMLElement;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `chipClassName` | `readonly chipClassName?: string;` | optional | Class of the inserted chip (default `'salmon-mention-chip'`). |
| `spacer` | `readonly spacer?: string;` | optional | Text placed after a chip when the trigger has no `suffix`, so the caret has a place to sit (default a no-break space). |
| `createChip` | `readonly createChip?: (insertion: MentionEditorInsertion, doc: Document) => HTMLElement;` | optional | Builds the chip; the default is a `<span contenteditable="false">` with `data-mention-*` attributes. |
