@typed-tabletop-simulator/ui
Version:
JSX wrapper and components for Tabletop Simulator UI
21 lines (20 loc) • 603 B
TypeScript
/** @noSelfInFile */
import { OnClickHandler } from "../handler";
import { BaseProps, BaseUIElement, ColorLikeProps, TextLikeProps } from "./base";
export interface ButtonProps extends BaseProps, TextLikeProps, ColorLikeProps {
colors?: ColorsProps;
textColor?: string;
textAlignment?: Alignment;
image?: string;
onClick: OnClickHandler;
}
export declare class Button extends BaseUIElement<ButtonProps> {
constructor(props: ButtonProps);
}
interface NamedColors {
base?: string;
hover?: string;
click?: string;
}
type ColorsProps = string[] | NamedColors;
export {};