OnsTextInput

constructor(type: InputType = InputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, maxlength: Int? = null, className: String? = null, init: OnsTextInput.() -> Unit? = null)

Creates a text input component.

Parameters

type

text input type (default "text")

value

text input value

placeholder

the placeholder for the text input

floatLabel

whether the placeholder will be animated in Material Design

inputId

the ID of the input element

maxlength

maximum length of the text input

className

CSS class names

init

an initializer extension function