Components (172)
AI Answer
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading AI Answer…
Usage
import { AIAnswer } from "ui-kit/components/ai-answer";Props
| Prop | Type | Default | Description |
|---|---|---|---|
question | string | — | — |
sources* | AnswerSource[] | — | — |
answer* | string | — | — |
streaming | boolean | false | — |
animate | boolean | true | — |
speed | number | 38 | — |
followUps | string[] | [] | — |
onFollowUp | (question: string) => void | — | — |
onRegenerate | () => void | — | — |
onStop | () => void | — | — |
onFeedback | (value: "up" | "down", reason?: string) => void | — | — |
feedbackReasons | string[] | — | — |
onCopy | (text: string) => void | — | — |
className | string | — | — |