@typed-tabletop-simulator/ui
Version:
JSX wrapper and components for Tabletop Simulator UI
13 lines (12 loc) • 639 B
TypeScript
/** @noSelfInFile */
/** @noSelfInFile */
import { Ref, Tag } from "./element/base";
type CreateElementFunction<P> = (this: void, props?: P, ...children: JSX.Element[]) => JSX.Element;
export declare const ttsUiFragment: (props?: object, ...children: any[]) => any;
export declare const useRef: <T>() => Ref<T>;
export declare const ttsUi: <T>(tag: Tag | CreateElementFunction<T>, props?: {
[key: string]: any;
}, ...children: JSX.Element[]) => JSX.Element;
export declare const render: (object: TTSObject, element: JSX.Element) => UIElement;
export declare const applyUi: (object: TTSObject, element: JSX.Element) => void;
export {};