pnpm dlx shadcn@latest add @saturation-ui/agent-chatTailwind v4 — Source Scanning
The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:
@source "../components";This ensures all utility classes in CVA variants and data attribute selectors are included in your build.
import { AgentChat } from "@/components/ui/agent-chat"<AgentChat onSend={handleSend} />| Prop | Type | Default | Description |
|---|---|---|---|
onSend | (message: string, files?: File[]) => void | — | Send message handler. |
placeholder | string | "Ask anything" | Input placeholder text. |
models | Model[] | — | Available AI models for the model picker. |
isThinking | boolean | — | Whether the agent is currently processing. |
onStop | () => void | — | Stop/cancel handler for the stop button. |
On This Page