prompt-kit
repository·main·Indexed 25 days ago
https://github.com/ibelick/prompt-kitA library of high-quality, customizable UI components tailored for AI-driven applications such as chat interfaces, AI agents, and autonomous assistants. Built for use with shadcn/ui, it includes specialized components like ChainOfThought for reasoning chains, ChatContainer for auto-scrolling chat interfaces, CodeBlock with Shiki syntax highlighting, and FeedbackBar for collecting user responses.
What's inside prompt-kit
- prompt-kit provides customizable, high-quality UI components specifically designed for building AI applications, such as chat experiences, AI agents, and autonomous assistants.
Use the Steps component
mainTheStepscomponent displays a sequence of operations in a collapsible layout. It is ideal for showing AI reasoning traces, tool calls, or process logs. You can customize the appearance with custom icons, vertical bars, or integrate it with theSourceorLoadercomponents.Use prompt-kit components via MCP chat
mainOnce the MCP server is configured, you can interact with prompt-kit components directly through your AI tool's chat interface using natural language commands. You can browse the registry, add specific components to your project, view component details/previews, or request the construction of entire application layouts.Install the Feedback Bar component
mainYou can install the Feedback Bar component using the shadcn CLI or by manual installation.
Via CLI
Run the following command to add the component directly to your project:
Manual Installation
- Install the required dependency:
npm install lucide-react - Copy the component source code into your project (e.g.,
components/prompt-kit/feedback-bar.tsx). - Update the import paths within the component to match your project's directory structure.
npx shadcn add "https://prompt-kit.com/c/feedback-bar.json"- Install the required dependency:
Install shadcn/ui
mainPrompt-kit components are built on top of shadcn/ui. You must first install and configure shadcn/ui in your project by following the official shadcn/ui installation guide.Install Text Shimmer component
mainYou can install the
TextShimmercomponent using the shadcn CLI or by manually copying the source code.Using CLI: Run the following command to add the component directly to your project:
Manual Installation:
- Copy the source code from
components/prompt-kit/text-shimmer.tsxinto your project. - Update the import paths within the file to match your project's directory structure.
npx shadcn add "https://prompt-kit.com/c/text-shimmer.json"- Copy the source code from
Configure prompt-kit MCP for Cursor
mainTo enable Cursor to access prompt-kit components directly, create a
.cursor/mcp.jsonfile in your project root and add the prompt-kit MCP server configuration. After saving the file, restart Cursor to apply the changes.{ "mcpServers": { "prompt-kit": { "description": "prompt-kit registry", "type": "stdio", "command": "npx", "args": ["-y", "shadcn@canary", "mcp"], "env": { "REGISTRY_URL": "https://www.prompt-kit.com/c/registry.json" } } } }Install prompt-kit components
mainBefore installing prompt-kit components, you must have shadcn/ui installed and configured in your project. Once shadcn/ui is ready, use the shadcn CLI to add specific prompt-kit components to your project.
npx shadcn@latest add prompt-kit/[component]Install the Reasoning component
mainYou can install the Reasoning component using the shadcn CLI or by manual installation.
Using CLI: Run the following command to add the component directly to your project:
Manual Installation:
- Copy the source code for the component into your project (e.g.,
components/prompt-kit/reasoning.tsx). - Update the import paths within the file to match your project's directory structure.
npx shadcn add "https://prompt-kit.com/c/reasoning.json"- Copy the source code for the component into your project (e.g.,
Install the Tool component
mainYou can install the
Toolcomponent using the shadcn CLI or by manual installation.CLI Installation: Run the following command to add the component directly to your project:
Manual Installation:
- Copy the source code from
components/prompt-kit/tool.tsxinto your project. - Update the import paths within the file to match your project's directory structure.
npx shadcn add "https://prompt-kit.com/c/tool.json"- Copy the source code from
Install JSX Preview via CLI
mainYou can install the
JSXPreviewcomponent using the shadcn CLI by pointing to the prompt-kit registry URL.npx shadcn add "https://prompt-kit.com/c/jsx-preview.json"Install the Source component
mainYou can install the
Sourcecomponent using the shadcn CLI or by manual installation.Using CLI: Run the following command to add the component directly to your project:
Manual Installation:
- Copy the component code into your project (e.g.,
components/prompt-kit/source.tsx). - Update the import paths within the file to match your project's directory structure.
npx shadcn add "https://prompt-kit.com/c/source.json"- Copy the component code into your project (e.g.,