adf0d17497
publish / version_or_publish (push) Has been cancelled
storybook-build / changes (push) Has been cancelled
storybook-build / :storybook-build (push) Has been cancelled
Sync Gradio Skills to Hugging Face / sync-skills (push) Has been cancelled
functional / changes (push) Has been cancelled
functional / build-frontend (push) Has been cancelled
functional / functional-test-SSR=false (push) Has been cancelled
functional / functional-reload (push) Has been cancelled
js / changes (push) Has been cancelled
js / js-test (push) Has been cancelled
docs-build / changes (push) Has been cancelled
docs-build / docs-build (push) Has been cancelled
docs-build / website-build (push) Has been cancelled
functional / functional-test-SSR=true (push) Has been cancelled
hygiene / hygiene-test (push) Has been cancelled
python / changes (push) Has been cancelled
python / build (push) Has been cancelled
python / test-ubuntu-latest-flaky (push) Has been cancelled
python / test-ubuntu-latest-not-flaky (push) Has been cancelled
python / test-windows-latest-flaky (push) Has been cancelled
python / test-windows-latest-not-flaky (push) Has been cancelled
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import type { FileData } from "@gradio/client";
|
|
import type { SelectData } from "@gradio/utils";
|
|
import type { ILoadingStatus as 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;
|
|
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;
|
|
}
|