TextField

data class TextField(val value: String, val onValueChange: (String) -> Unit = {}, val placeholder: String = "", val key: String? = null) : Element

Represents a text input field.

Constructors

Link copied to clipboard
constructor(value: String, onValueChange: (String) -> Unit = {}, placeholder: String = "", key: String? = null)

Properties

Link copied to clipboard
open override val key: String? = null

Optional key for this element

Link copied to clipboard

Callback invoked when text changes

Link copied to clipboard

Optional placeholder text

Link copied to clipboard

The current text value