Skip to content
🤔 Documentation issue? Report or edit

BaseTextField

Info

This is the API of version 1.0.0-beta01

BaseTextField can be used to insert text. See TextField for a material version.

@Composable
fun BaseTextFieldDemo() {
    var textState by remember { mutableStateOf(TextFieldValue()) }

    Column {
        TextField(value = textState, onValueChange = {
            textState = it
        })
        Text("The textfield has this text: " + textState.text)
    }

}

See also:


Last update: February 28, 2021