FormTextFieldWithTitle

fun FormTextFieldWithTitle(title: String, value: String, onValueChange: (String) -> Unit, placeholder: String, modifier: Modifier = Modifier, titleTag: String = "")

Displays a single-line form text field with a title above it.

Uses FormTextField to display the editable input field.

Parameters

title

Text displayed above the input field.

value

The current text displayed in the field.

onValueChange

Callback invoked when the user edits the text.

placeholder

Text displayed when the field is empty.

modifier

Modifier passed to the underlying text field.

titleTag

Test tag used to identify the title in UI tests.