File size: 416 Bytes
03c65bd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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 };
}
|