尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证A customizable, accessible chatGPT like UI components built for React applications using the shadcn/ui design system.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Source-owned React components for building AI agent and LLM chat interfaces. This shadcn/ui registry covers streaming messages, reasoning, tool calls, artifacts, files, model selection, and session navigation without coupling your UI to an AI SDK or wire protocol.
Documentation · Playground · Agent UI reference app
Start in a project with shadcn/ui initialized:
npx shadcn@latest add miskibin/chat-components/chat
chat installs the starter layout and its registry dependencies. Install a
single primitive when you only need part of the kit:
npx shadcn@latest add miskibin/chat-components/message-list
npx shadcn@latest add miskibin/chat-components/chat-input
The files are copied into your application. There is no runtime
chat-components package and no required provider SDK.
"use client"
import { useCallback, useState } from "react"
import {
ChatInput,
type ChatInputPayload,
} from "@/components/ui/chat-input"
import {
MessageList,
type ChatMessageData,
} from "@/components/ui/message-list"
export function AgentChat() {
const [messages, setMessages] = useState<ChatMessageData[]>([])
const [isGenerating, setIsGenerating] = useState(false)
const send = useCallback(({ text }: ChatInputPayload) => {
setMessages((current) => [
...current,
{ id: crypto.randomUUID(), content: text, sender: "user" },
])
setIsGenerating(true)
// Start your stream, append one assistant message, then update its parts.
}, [])
const stop = useCallback(() => setIsGenerating(false), [])
return (
<main className="flex h-svh min-h-0 flex-col">
<MessageList messages={messages} isGenerating={isGenerating} />
<ChatInput
isGenerating={isGenerating}
onSend={send}
onStop={stop}
/>
</main>
)
}
Assistant messages accept a chronological parts array, so text and tool calls
stay in the order emitted by the agent. See the
message examples
for the data model and streaming patterns.
| Area | Registry items |
|---|---|
| Starter | chat, prompt-suggestions |
| Composer | chat-input, model-picker, mode-picker, context-meter, folder-picker |
| Transcript | message-list, message, message-parts, message-markdown, generation-status |
| Agent output | ask-question, todo-list, change-summary, file-preview, file-icon |
| Navigation | chat-sidebar, sidebar-item, sidebar-dnd, sidebar-drop-zones, chat-navbar |
| Utilities | resizable, theme-toggle, use-click-outside |
Every public component has a live example, source, props, and data-slot
reference in the component docs.
Components use your shadcn semantic tokens and merge consumer classes last.
Meaningful elements expose data-slot and state attributes, so you can restyle
the installed source without rewriting component internals.
components/ui/ — registry primitivescomponents/chat.tsx — starter chat blockcomponents/examples/ — runnable examplescomponents/docs/component-docs/ — examples and API referencesregistry.json — registry manifestpublic/r/ — generated shadcn registry payloadsIf you are an AI coding agent, read AGENTS.md before editing. Component changes
must update docs, examples, the registry build, and the vendored copy in
Agent UI.
npm install
npm run dev
npm run lint
npm run typecheck
npm run registry:build
npm run build
Requires Node.js 20.9 or newer.
MIT