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

# Chat

> A production-grade conversational chat component with thread history sidebar, rich message rendering, status indicators, file attachments, and auto-expanding composer.

## Install

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

## Dependencies

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

## Usage

```tsx
"use client";

import { Chat as Chat } from "@/components/blocks/chat";

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

## Source Files

- [components/blocks/chat.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/blocks/chat.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
