Team chatPro
Team chat with channels, reactions, mentions, typing indicator and mobile drawer.
What's inside
- Channels with unread
- Reactions
- Mentions
- Typing and replies
When to use
- Collaboration tools and in-app messaging.
When not to use
- Customer support threads: use the support ticket block.
Installation
Usage
Import it from @/components/blocks/team-chat after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { TeamChat } from "@/components/blocks/team-chat";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<TeamChat />
</main>
);
}API reference
TeamChat
A team chat with channels and unread counts, message reactions, @mentions, a typing indicator and a mobile channel drawer. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| ⌘EnterorCtrl+Enter | Send |
| @ | Mention someone |
| Tab | Reach reactions and channels |
Accessibility
- Messages are articles in a live region; reactions are toggle buttons named with their count.
- The mobile channel list is a labelled dialog.
Motion
- Messages rise in; reactions pop; the typing indicator appears before replies; the active channel marker slides.
Responsive behavior
- The channel sidebar becomes a drawer below 768px.
Performance
- Auto-scrolls only when new messages arrive.
Notes for AI
- Replace the simulated reply with your realtime channel (WebSocket or SSE).
This page as Markdown, for assistants and coding agents:
/blocks/team-chat/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt