Skip to Content
UI Kit
Components (172)

AI Answer

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading AI Answer…

Usage

import { AIAnswer } from "ui-kit/components/ai-answer";

Props

PropTypeDefaultDescription
questionstring——
sources*AnswerSource[]——
answer*string——
streamingbooleanfalse—
animatebooleantrue—
speednumber38—
followUpsstring[][]—
onFollowUp(question: string) => void——
onRegenerate() => void——
onStop() => void——
onFeedback(value: "up" | "down", reason?: string) => void——
feedbackReasonsstring[]——
onCopy(text: string) => void——
classNamestring——

On this page