UNPKG

verstak

Version:
17 lines (16 loc) 674 B
import { ReactiveNodeDecl, ReactiveNode } 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?: ReactiveNodeDecl<El<HTMLElement, InputModel>>): ReactiveNode<El<HTMLElement, InputModel<string>>>; export declare function composeInputModel<T>(props?: Partial<ValuesOrRefs<InputModel<T>>>): InputModel<T>;