View as Markdown

API reference: @salmonui/rich-text/collab

CollaborationUserinterface

import type { CollaborationUser } from '@salmonui/rich-text/collab';
interface CollaborationUser {
    readonly id: string;
    readonly name: string;
    readonly color: string;
}

The local user as remote peers see them (cursor label and color).

CollaborationUser members (3)
NameSignatureDescription
idreadonly id: string;
namereadonly name: string;
colorreadonly color: string;

A CSS color for the remote cursor and selection, for example #2563eb.