UNPKG

@kitten-science/kitten-scientists

Version:

Add-on for the wonderful incremental browser game: https://kittensgame.com/web/

22 lines 839 B
import { UiComponent, type UiComponentOptions } from "./UiComponent.js"; export type InputOptions = ThisType<Input> & UiComponentOptions & { readonly onChange?: (value: string) => void; readonly onEnter?: (currentValue: string) => void; readonly onEscape?: (currentValue: string) => void; readonly selected?: boolean; readonly value?: string; readonly classes?: Array<string>; }; export declare class Input extends UiComponent<HTMLInputElement> { readonly options: InputOptions; /** * Constructs an input field. * * @param host - A reference to the host. * @param label - The label on the input element. * @param options - Options for the UI element. */ constructor(parent: UiComponent, options?: InputOptions); toString(): string; } //# sourceMappingURL=Input.d.ts.map