<Chat messages={[
{ role: "user", content: "Deploy v0.2.0?" },
{ role: "assistant", content: "Running checks…" },
{ role: "tool", content: "All checks passed." },
{ role: "assistant", content: "Proceeding with deploy." },
]} />
Chat
src/components/chat.tsx
Import
import { Chat } from "@ossrandom/design-system";
Examples
API
extends BaseProps
| Prop | Type |
|---|---|
messages required |
readonly ChatMessage[] |
streaming |
boolean |
placeholder |
string |
onSend |
(text: string, attachments: readonly File[]) => void | Promise<void>; readonly onStop?: () => void; readonly suggestions?: readonly string[]; |