OnsTextInput(type: TextInputType = TextInputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, classes: Set<String> = setOf(), init: (OnsTextInput.() -> Unit)? = null)
Creates a text input component.
type - text input type (default "text")
placeholder - the placeholder for the text input
floatLabel - whether the placeholder will be animated in Material Design
inputId - the ID of the input element
classes - a set of CSS class names
init - an initializer extension function
Constructor
Creates a text input component.