Ai Chat Interface
A production-scale, light + dark Ai Chat Interface component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add ai-chat-interfaceLive preview available in the gallery.
Usage
import { AIChatInterface } from "@lerpa/ui";
<AIChatInterface />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| messages | AIChatMessage[] | — | |
| model | string | — | |
| agentName | string | — | |
| status | "idle" | "thinking" | "streaming" | — | |
| accent | string | — | |
| height | number | string | — | |
| placeholder | string | — | |
| onSend | (text: string) => void | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.