TextField
A component that allows users to enter and modify text.
Properties
Preview
Generated Code
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
@Composable
fun MyTextField() {
var text by remember { mutableStateOf("") }
TextField(
value = text,
onValueChange = { text = it },
label = { Text("Email") },
placeholder = { Text("your.email@example.com") },
enabled = true,
modifier = Modifier.fillMaxWidth()
)
}