maille
Version:
Component library for MithrilJS
22 lines (21 loc) • 616 B
TypeScript
import { ClassComponent, CVnode, Vnode } from "mithril";
import { Size, InputUpdateFn } from "../../types";
export interface TextInputAttrs {
id?: string;
className?: string;
type?: string;
size?: Size;
rounded?: boolean;
disabled?: boolean;
placeholder?: string;
name?: string;
value?: string;
onChange?: InputUpdateFn;
onEnterPress?: InputUpdateFn;
}
declare class TextInput implements ClassComponent<TextInputAttrs> {
protected value: string;
constructor(vnode?: CVnode<TextInputAttrs>);
view(vnode: Vnode<TextInputAttrs>): any;
}
export default TextInput;