尚未偵測到更新。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