TextField & OutlinedTextField
Read what the user types.
Why Text Fields Matter
Almost every app asks the user to type something. In Compose, the TextField is your gateway to reading that input. ✏️
The TextField Composable
A TextField shows an editable box. It needs a current value and a callback that fires every time the text changes.
TextField(
value = name,
onValueChange = { name = it }
)All lessons in this course
- TextField & OutlinedTextField
- Labels, Placeholders & Leading Icons
- Keyboard Types & IME Actions
- Inline Validation & Error States