# CollaborationOptions (@salmonui/rich-text/collab)

> The CollaborationOptions interface of @salmonui/rich-text/collab.

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

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

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

## Reference

Kind: interface

```ts
interface CollaborationOptions {
    readonly doc: Y.Doc;
    readonly fragment?: string;
    readonly awareness?: Awareness;
    readonly user: CollaborationUser;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `doc` | `readonly doc: Y.Doc;` |  | The shared document. Seed it once (see seedCollaborationDoc); the editor then renders its content. |
| `fragment` | `readonly fragment?: string;` | optional | Name of the Y.XmlFragment holding the content (default `'prosemirror'`). |
| `awareness` | `readonly awareness?: Awareness;` | optional | Presence: remote cursors and selections with the user's name and color. |
| `user` | `readonly user: CollaborationUser;` |  |  |
