frontend / 6.2.0 /plot /types.ts
gradio-pr-bot's picture
Upload folder using huggingface_hub
9f71cb3 verified
import type { SelectData, CustomButton } from "@gradio/utils";
import type { LoadingStatus } from "@gradio/statustracker";
export type ThemeMode = "system" | "light" | "dark";
export interface PlotProps {
value: null | string;
theme_mode: ThemeMode;
caption: string;
bokeh_version: string | null;
show_actions_button: boolean;
_selectable: boolean;
x_lim: [number, number] | null;
show_fullscreen_button: boolean;
buttons: (string | CustomButton)[] | null;
}
export interface PlotEvents {
change: never;
select: SelectData;
clear_status: LoadingStatus;
custom_button_click: { id: number };
}