LabeledField
fun LabeledField(label: String, value: String, onValueChange: (String) -> Unit, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, keyboardType: ERROR CLASS: Symbol not found for KeyboardType = KeyboardType.Text, singleLine: Boolean = true, imeAction: ERROR CLASS: Symbol not found for ImeAction = ImeAction.Next)
A labeled outlined text field styled with the app's field defaults.
Parameters
label
The field label / placeholder.
value
The current text value.
onValueChange
Callback invoked as the user types.
modifier
Modifier applied to the field.
keyboardType
The soft-keyboard type; defaults to KeyboardType.Text.
singleLine
Whether the field is single-line; defaults to true.
imeAction
The IME action shown on the soft keyboard; defaults to ImeAction.Next. When ImeAction.Next, the keyboard's next button advances focus to the following field; when ImeAction.Done, it dismisses the keyboard. Use ImeAction.Default for multi-line fields so Enter inserts a newline instead of navigating.