Download 6.26.1/code/types.ts from gradio/frontend: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/datasets/gradio/frontend/resolve/main/6.26.1/code/types.ts
- Command line
-
hf download hf://datasets/gradio/frontend/6.26.1/code/types.ts
-
curl -L -o types.ts https://huggingface.co/datasets/gradio/frontend/resolve/main/6.26.1/code/types.ts
416 Bytes
| import type { CustomButton } from "@gradio/utils"; | |
| export interface CodeProps { | |
| value: string; | |
| language: string; | |
| max_lines: number; | |
| wrap_lines: boolean; | |
| show_line_numbers: boolean; | |
| autocomplete: boolean; | |
| lines: number; | |
| buttons: (string | CustomButton)[] | null; | |
| } | |
| export interface CodeEvents { | |
| change: any; | |
| input: any; | |
| focus: any; | |
| blur: any; | |
| clear_status: any; | |
| custom_button_click: { id: number }; | |
| } | |