verstak
Version:
Verstak - Front-End Library
17 lines (16 loc) • 693 B
TypeScript
import { ReactiveTreeNodeDecl } from "reactronic";
import { FocusModel, El } from "verstak";
import { ValuesOrRefs } from "./common/Utils.js";
export type InputModel<T = string> = FocusModel & {
icon?: string;
text: string;
options: Array<T>;
selected: T | undefined;
multiSelected: Set<T>;
position: number;
isMultiLineText: boolean;
isHotText: boolean;
inputStyle: string;
};
export declare function Input(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, InputModel>>): import("reactronic").ReactiveTreeNode<El<HTMLElement, InputModel<string>>>;
export declare function composeInputModel<T>(props?: Partial<ValuesOrRefs<InputModel<T>>>): InputModel<T>;