Components
All available chat UI components in @polpo-ai/chat.
The @polpo-ai/chat package provides a complete set of composable React components for building chat interfaces. Components are organized into four categories.
| Component | Description |
|---|
| Chat | All-in-one chat widget with provider, messages, and input |
| ChatInput | Text input with file attachments and send/stop controls |
| ChatMessages | Virtualized, auto-scrolling message list |
| ChatMessage | Single message renderer for user and assistant messages |
| ChatProvider | Context provider that wires up chat state and file uploads |
| Component | Description |
|---|
| ChatAskUser | Multi-question form for agent-initiated user prompts |
| ChatScrollButton | Floating scroll-to-bottom button with new-message indicator |
| ChatTyping | Animated three-dot typing indicator |
| ChatSkeleton | Skeleton loaders that mirror real message layout |
| Component | Description |
|---|
| ToolCallShell | Expandable shell for tool call results with status indicators |