File size: 1,224 Bytes
fa9e401 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
import type { FileData } from "@gradio/client";
import type { SelectData } from "@gradio/utils";
import type { LoadingStatus } from "@gradio/statustracker";
import type { InputHTMLAttributes } from "./shared/types";
import type { WaveformOptions } from "js/audio/shared/types";
export interface MultimodalTextboxEvents {
change: { text: string; files: FileData[] };
submit: never;
stop: never;
blur: never;
select: SelectData;
input: never;
focus: never;
error: string;
clear_status: LoadingStatus;
start_recording: never;
pause_recording: never;
stop_recording: never;
upload: FileData[] | FileData;
clear: undefined;
}
export interface MultimodalTextboxProps {
value: { text: string; files: FileData[] };
file_types: string[] | null;
lines: number;
placeholder: string;
info: string | undefined;
max_lines: number;
submit_btn: string | boolean | null;
stop_btn: string | boolean | null;
value_is_output: boolean;
rtl: boolean;
text_align: "left" | "right" | undefined;
autofocus: boolean;
file_count: "single" | "multiple" | "directory";
max_plain_text_length: number;
sources: ("microphone" | "upload")[];
waveform_options: WaveformOptions;
html_attributes: InputHTMLAttributes | null;
}
|