🎨
Customizable Theme
Dark and light modes with full color customization via CSS variables or props.
Customizable, streaming-ready chat UI with dark/light themes, file uploads, and tool visualization
npm install @cognipeer/chat-uiyarn add @cognipeer/chat-uipnpm add @cognipeer/chat-uiimport { Chat } from "@cognipeer/chat-ui";
import "@cognipeer/chat-ui/styles.css";
function App() {
return (
<div className="h-screen">
<Chat
baseUrl="http://localhost:3000/api/agents"
agentId="my-agent"
theme="dark"
/>
</div>
);
}<Chat
baseUrl="/api/agents"
agentId="assistant"
theme="dark"
/><Chat
baseUrl="/api/agents"
agentId="assistant"
theme="light"
/><Chat
baseUrl="/api/agents"
agentId="assistant"
authorization="Bearer your-token"
/>import { ChatMinimal } from "@cognipeer/chat-ui";
<ChatMinimal
baseUrl="/api/agents"
agentId="assistant"
/><Chat
baseUrl="/api/agents"
agentId="assistant"
themeColors={{
bgPrimary: "#1a1a2e",
bgSecondary: "#16213e",
accentPrimary: "#e94560",
}}
/>