UNPKG

@cossistant/next

Version:

Next.js-ready SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.

40 lines (38 loc) 1.53 kB
import * as React$1 from "react"; //#region ../react/src/primitives/multimodal-input.d.ts /** * Textarea tailored for support conversations. Handles keyboard submit, * clipboard uploads and auto-resizing while remaining composable via * `asChild`. */ declare const MultimodalInput: React$1.ForwardRefExoticComponent<Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value"> & { value: string; onChange: (value: string) => void; onSubmit?: () => void; onFileSelect?: (files: File[]) => void; asChild?: boolean; className?: string; error?: Error | null; disabled?: boolean; } & React$1.RefAttributes<HTMLTextAreaElement>>; /** * Hidden file selector that feeds uploads back into the multimodal input when * chat UIs want an explicit attachment button. */ declare const FileInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & { onFileSelect?: (files: File[]) => void; asChild?: boolean; } & React$1.RefAttributes<HTMLInputElement>>; declare const SupportInput: React$1.ForwardRefExoticComponent<Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value"> & { value: string; onChange: (value: string) => void; onSubmit?: () => void; onFileSelect?: (files: File[]) => void; asChild?: boolean; className?: string; error?: Error | null; disabled?: boolean; } & React$1.RefAttributes<HTMLTextAreaElement>>; //#endregion export { FileInput, MultimodalInput, SupportInput }; //# sourceMappingURL=multimodal-input.d.ts.map