Download 6.3.1/dropdown/types.ts from gradio/frontend: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/datasets/gradio/frontend/resolve/main/6.3.1/dropdown/types.ts
- Command line
-
hf download hf://datasets/gradio/frontend/6.3.1/dropdown/types.ts
-
curl -L -o types.ts https://huggingface.co/datasets/gradio/frontend/resolve/main/6.3.1/dropdown/types.ts
537 Bytes
| import type { KeyUpData, SelectData, CustomButton } from "@gradio/utils"; | |
| export type Item = string | number; | |
| export interface DropdownProps { | |
| multiselect: boolean; | |
| max_choices: number | null; | |
| choices: [string, Item][]; | |
| allow_custom_value: boolean; | |
| value: Item | Item[]; | |
| info: string; | |
| filterable: boolean; | |
| buttons: (string | CustomButton)[] | null; | |
| } | |
| export interface DropdownEvents { | |
| change: never; | |
| input: never; | |
| select: SelectData; | |
| focus: never; | |
| blur: never; | |
| key_up: KeyUpData; | |
| custom_button_click: { id: number }; | |
| } | |