UNPKG

maille

Version:

Component library for MithrilJS

23 lines (22 loc) 655 B
import m from "mithril"; 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>): m.Vnode<any, any>; } export default TextInput;