DUPromptInput

AI

Multi-line AI prompt composer with send action.

import { DUPromptInput } from 'deri-ui';
Live preview
typescript
<DUPromptInput onSubmit={(text) => ask(text)} />

Props

PropTypeDefaultDescription
onSubmit(value: string) => void—Send handler
loadingboolean—Disable while streaming
placeholderstring—Placeholder

Usage

import { DUPromptInput } from 'deri-ui';

<DUPromptInput onSubmit={(text) => ask(text)} />

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

Related

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