Multi-modal chat input with file uploads, model selector, extended thinking toggle, and spring-timed interactions.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- lucide-react
Code
"use client";
import ClaudeChatInput from "@/registry/ruixenui/claude-chat-input";
export default function ClaudeChatInputDemo() {
return (
<div className="flex min-h-screen w-full flex-col items-center justify-center bg-[#F5F0EA] px-4 py-14 dark:bg-[#2A2520]">
<ClaudeChatInput
greeting="Good evening, Ruixen"
onSubmit={(data) => console.log("submitted:", data)}
/>
</div>
);
}
































