OptionalallowAllow format toggle between 12h/24h (for inline mode)
OptionalautoOptionalautocompleteThe autocomplete property sets or returns the value of the autocomplete attribute in a text field. When autocomplete is on, the browser automatically complete values based on values that the user has entered before.
OptionalautofocusWhen true, add the autofocus attribute to the input field.
OptionalcanShow a clear button (small 'x') to clear the input value. Only valid for TextInput.
OptionalclassThe class name(s) for this virtual element, as a space-separated list.
OptionalclassThe class name(s) for this virtual element, as a space-separated list.
OptionalclearClear button label
OptionalcloseClose button label
OptionalcolsNumber of cols of a textarea
OptionalcontainerOptionaldataWill replace the helperText, if any, when the input is invalid.
OptionaldataWill replace the helperText, if any, when the input is valid.
OptionaldefaultOptionaldefaultInitial value for uncontrolled mode. Only used when value and oninput are not provided.
In uncontrolled mode, the component manages its own internal state.
OptionaldialOptionaldisabledSets the input field to disabled.
OptionaldurationOptionalfromOptionalheightFor vertical range inputs: height of the slider
OptionalhelperAdd a description underneath the input field.
Optionali18nOptionaliconUses Materialize icons as a prefix or postfix.
OptionalidOptional ID.
OptionalinnerOptionalisIf true, add a mandatory * after the label (if any), and add the required and aria-required attributes to the input element.
OptionalkeyUnique key for use of the element in an array.
OptionallabelOptional label.
OptionalmaxWhen input type is a number, optionally specify the maximum value.
OptionalmaxWhen input type is a text or text area, optionally specify the maximum length.
OptionalmaxFor range inputs with minmax: initial maximum value
OptionalminWhen input type is a number, optionally specify the minimum value.
OptionalminWhen input type is a text or text area, optionally specify the minimum length.
OptionalminmaxFor range inputs: enable dual thumb (min/max) range selection
OptionalminFor range inputs with minmax: initial minimum value
OptionalnewIf true, break to a new row
OptionalonblurInvoked when the element looses focus
OptionalonchangeInvoked when the input looses focus. For range sliders with minmax, second parameter is maxValue.
OptionalonOptionalonOptionaloninputInvoked when the value changes (immediate feedback). For range sliders with minmax, second parameter is maxValue.
OptionalonkeydownKey down event
OptionalonkeypressKey press event
OptionalonkeyupKey up event
OptionalonOptionalonOptionalonOptionalonOptionalouterOptionalpatternThe pattern property sets or returns the value of the pattern attribute of a text field. The pattern attribute specifies a regular expression that the text field's value is checked against.
OptionalplaceholderAdd a a placeholder to the input field.
OptionalreadThe readOnly property sets or returns whether a text field is read-only, or not. A read-only field cannot be modified. However, a user can tab to it, highlight it, and copy the text from it.
OptionalrequiredAdd the required and aria-required attributes to the input element
OptionalrowsNumber of rows of a textarea
OptionalshowOptionalstyleOptional style information.
OptionaltickOptionaltooltipFor range inputs with valueDisplay: position of value tooltips
OptionaltwelveOptionaluseUse inline mode (HTML5 time input) instead of modal, default true
OptionalvalidateWhen returning true or an empty string, clear the custom validity (= valid). When returning false, set the custom validity message to a default string string. When returning a non-empty string, set the custom validity message to this string.
OptionalvalueCurrent value of the input field. If provided along with oninput, the component operates in controlled mode
where the parent manages the state. The parent must update this value in response to oninput callbacks.
OptionalvalueFor range inputs: control value display behavior. 'auto' shows on drag, 'always' shows always, 'none' never shows
OptionalverticalFor range inputs: render vertically instead of horizontally
OptionalvibrateOptionalonbeforeremoveThe onbeforeremove hook is called before a DOM element is detached from the document. If a Promise is returned, Mithril only detaches the DOM element after the promise completes.
OptionalonbeforeupdateThe onbeforeupdate hook is called before a vnode is diffed in a update.
OptionaloncreateThe oncreate hook is called after a DOM element is created and attached to the document.
OptionaloninitThe oninit hook is called before a vnode is touched by the virtual DOM engine.
OptionalonremoveThe onremove hook is called before a DOM element is removed from the document.
OptionalonupdateThe onupdate hook is called after a DOM element is updated, while attached to the document.
Any other virtual element properties, including attributes and event handlers.