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

PropTypeDefaultDescription
onSubmit(message, event) => void-Submit handler
acceptstring-File MIME type filter (e.g., "image/*")
multipleboolean-Allow multiple file selection
maxFilesnumber-Maximum files constraint
maxFileSizenumber-Maximum file size in bytes
globalDropboolean-Accept drops anywhere on document

Import

import { PromptInput } from '@blastx/ui-ai';