chat-ui

Builds React chat interfaces with container, message, input, and typing indicator components.

Updated Jul 28, 2026
One-click install
npx skills add https://github.com/Aadi-110i/PEP-PROJECT --skill chat-ui-aadi-110i
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chat-ui
Source: https://github.com/Aadi-110i/PEP-PROJECT/tree/main/skills/chat-ui
Command: npx skills add https://github.com/Aadi-110i/PEP-PROJECT --skill chat-ui-aadi-110i

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building a chat interface from scratch requires handling message layouts, input states, typing indicators, and streaming UX, which is repetitive work for every AI assistant or messaging feature. ## Core Features & Use Cases - Composable Chat Blocks: Provides ChatContainer, ChatMessage, ChatInput, and TypingIndicator components installable via the shadcn CLI. - Message Role Variants: Supports user, assistant, and system message styles with Tailwind CSS and shadcn/ui design tokens. - Use Case: A developer building an AI assistant in Next.js installs the chat block, wires the input's onSubmit handler to their API, and renders streaming responses with a typing indicator while loading. ## Quick Start Install the chat components with the shadcn CLI and build a chat interface that sends user messages to my API and displays assistant responses.

Frequently Asked Questions about chat-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a chat UI in React with shadcn?

Install the chat block with npx shadcn@latest add https://ui.inference.sh/r/chat.json, then compose ChatContainer, ChatMessage, ChatInput, and TypingIndicator. Wire ChatInput's onSubmit to your API and render messages from state.

How to show a typing indicator while waiting for AI responses?

Render the TypingIndicator component conditionally based on a loading state. Set the state to true when sending a message and false when the response arrives, displaying the indicator between user input and assistant reply.

Does the chat component support Next.js and Tailwind CSS?

Yes, the components are designed for React and Next.js and styled with Tailwind CSS using shadcn/ui design tokens. You can override appearance by passing a className prop to components like ChatMessage.

What message roles does the chat message component support?

ChatMessage supports three roles: user messages aligned right, assistant messages aligned left, and system messages centered. Pass the role prop along with the content string to control the layout.

Can I use these chat components for streaming AI responses?

Yes, the components support streaming workflows by updating the messages state as chunks arrive from your API. The documentation links to real-time streaming guidance for rendering partial assistant responses.