19 lines
368 B
TypeScript
19 lines
368 B
TypeScript
// TODO: Try and get rid of the need for this file
|
|
|
|
export interface TextButtonWidget {
|
|
tooltip?: string;
|
|
message?: string | object;
|
|
callback?: () => void;
|
|
props: {
|
|
kind: "TextButton";
|
|
label: string;
|
|
icon?: string;
|
|
emphasized?: boolean;
|
|
minWidth?: number;
|
|
disabled?: boolean;
|
|
|
|
// Callbacks
|
|
// `action` is used via `IconButtonWidget.callback`
|
|
};
|
|
}
|