Chatbot
PromptInput
Form component for text and file input with attachment management and submit handling.
Enter a prompt, attach files, or drag content into the composer.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| onSubmit | (message, event) => void | - | Submit handler |
| accept | string | - | File MIME type filter (e.g., "image/*") |
| multiple | boolean | - | Allow multiple file selection |
| maxFiles | number | - | Maximum files constraint |
| maxFileSize | number | - | Maximum file size in bytes |
| globalDrop | boolean | - | Accept drops anywhere on document |
Import
import { PromptInput } from '@blastx/ui-ai';