UNPKG

@typed-tabletop-simulator/ui

Version:
21 lines (20 loc) 603 B
/** @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 {};