Skip to content
Screen

Team chat

BetaBeta — the props contract is close to final, but small breaking changes can still land.

Slack-style workspace with channels, unread badges, presence, reactions, and a side thread for replies.

Composition

Channel with a side thread

  • <TeamChatBlock>
    • <SidebarProvider>
      • sidebar prop
        • <Sidebar>
          • <SidebarMenuItem>
            • <SidebarMenuButton>
              • <AvatarBadge />
              </SidebarMenuButton>
            • <SidebarMenuBadge />
            • <SidebarMenuAction />
            </SidebarMenuItem>
          </Sidebar>
      • <SidebarInset>
        • children prop
          • <ChatLayout>
            • <ChatLayoutHeader>
              • <ChatLayoutTitle />
              • <ChatLayoutDescription />
              • <ChatLayoutActions />
              </ChatLayoutHeader>
            • <ChatThread>
              • <TranscriptDivider />
              • <ChatMessage>
                • flat layout
                • <ChatMessageReactions />
                • <ChatMessageReplySummary />
                • <ChatMessageActions />
                </ChatMessage>
              • <ChatTypingIndicator />
              • composer prop
                • <ChatComposer />
              </ChatThread>
            </ChatLayout>
        • thread prop
          • <ChatLayout />
        </SidebarInset>
      </SidebarProvider>
    </TeamChatBlock>

Installation

Registry command
See registry manifest

Usage

Library dependencies

Owned source

This template’s recipe and private support files. Public dependencies stay linked above.

Block recipesrc/registry/blocks/control-ui/team-chat.tsx
src/registry/blocks/control-ui/team-chat.tsx