Chat thread

Core

A chat thread with grouped messages, reactions, read receipts, typing, and a composer with attachments.

pnpm dlx shadcn@latest add https://wui.alann.works/r/chat-thread.json
  1. Deploy wUI to wui.alann.works
    Sent
  2. Kai

    All 191 items are live.

API Reference

PropTypeDefault
participants*ChatParticipant[]required
currentUserId*stringrequired
messagesChatMessage[]—
defaultMessagesChatMessage[]—
typingstring[]—
readByRecord<string, string>—
onSend(draft: ChatDraft) => void | Promise<void>—
onReact(messageId: string, emoji: string) => void—
onRetry(messageId: string) => void—
reactionsstring[]—
placeholderstring—
composerboolean—
allowAttachmentsboolean—
acceptstring—
groupWindownumber—
localestring—
labelstring—
labelsChatThreadLabels—
classNamestring—
Categories
data
Dependencies
lucide-reactmotion