View as Markdown

API reference: @salmonui/chat/conversation

ConversationUserinterface

import type { ConversationUser } from '@salmonui/chat/conversation';
interface ConversationUser {
    readonly id: string;
    readonly name: string;
    readonly avatar?: string | ReactNode;
    readonly status?: ReactNode;
}
ConversationUser members (4)
NameSignatureDescription
idreadonly id: string;
namereadonly name: string;
avataroptionalreadonly avatar?: string | ReactNode;

Image URL or a node; initials of name otherwise.

statusoptionalreadonly status?: ReactNode;

Presence indicator next to the avatar.