---
title: "Chat thread | Free React & Tailwind Agents Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/agents/chat-thread"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/agents/chat-thread.tsx"
install_command: "npx motion-ui-skill add chat-thread"
dependencies: ["clsx","lucide-react","motion","react","tailwind-merge"]
category: "agents"
subcategory: "agents"
---

# Chat thread

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

## Install

```bash
npx motion-ui-skill add chat-thread
```

## Dependencies

- `clsx`
- `lucide-react`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { ChatThread as ChatThread } from "@/components/agents/chat-thread";

export function Example() {
  return (
    <div className="p-6">
      <ChatThread />
    </div>
  );
}
```

## Source Files

- [components/agents/chat-thread.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/agents/chat-thread.tsx)
- [components/agents/chat-thread.module.css](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/agents/chat-thread.module.css)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
- [lib/motion-tokens.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/motion-tokens.ts)
