@typed-tabletop-simulator/ui
Version:
JSX wrapper and components for Tabletop Simulator UI
17 lines (16 loc) • 576 B
TypeScript
/** @noSelfInFile */
import { OnClickHandler } from "../handler";
import { BaseProps, BaseUIElement, ColorLikeProps, Vector2Prop } from "./base";
export interface ImageProps extends BaseProps, ColorLikeProps {
image: string;
preserveAspect?: boolean;
outlineColor?: string;
outlineSize?: number;
shadowColor?: string;
shadowOffset?: number | Vector2Prop;
onClick?: OnClickHandler;
}
export declare class Image extends BaseUIElement<ImageProps> {
constructor(props: ImageProps, children: JSX.Element[]);
setImage: (image: string) => void;
}