Download 6.15.2/dialogue/types.ts from gradio/frontend: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/datasets/gradio/frontend/resolve/main/6.15.2/dialogue/types.ts
- Command line
-
hf download hf://datasets/gradio/frontend/6.15.2/dialogue/types.ts
-
curl -L -o types.ts https://huggingface.co/datasets/gradio/frontend/resolve/main/6.15.2/dialogue/types.ts
545 Bytes
| import type { CustomButton } from "@gradio/utils"; | |
| export interface DialogueProps { | |
| value: { speaker: string; text: string }[] | string; | |
| buttons: (string | CustomButton)[]; | |
| ui_mode: "dialogue" | "text" | "both"; | |
| max_lines: number; | |
| tags: string[]; | |
| separator: string; | |
| color_map: { [key: string]: string }; | |
| speakers: string[]; | |
| info: string; | |
| placeholder: string; | |
| submit_btn: string | boolean; | |
| } | |
| export interface DialogueEvents { | |
| change: never; | |
| input: never; | |
| submit: never; | |
| clear_status: any; | |
| custom_button_click: { id: number }; | |
| } | |