DUAiChat

AI

Full AI chat panel with bubbles, typing, and prompt input.

import { DUAiChat } from 'deri-ui';
Live preview
AI Assistant
A
Ask me anything about Deri UI.
typescript
<DUAiChat messages={msgs} onSend={send} typing={false} title="Assistant" />

Props

PropTypeDefaultDescription
messagesDUChatMessage[]Transcript
onSend(text: string) => voidSubmit
typingbooleanShow typing indicator
titlestringHeader

Usage

import { DUAiChat } from 'deri-ui';

<DUAiChat messages={msgs} onSend={send} typing={false} title="Assistant" />

Customize with className, radius, and Tailwind utilities. Theme tokens come from deri-ui/tailwind.preset.

© 2026 Deri Ui. Developed by Deribew Shimelis. Copy and use the code freely in your projects.