TextFieldContent

fun <Value> MutablePreviewLabField<Value>.TextFieldContent(toString: (Value) -> String, toValue: (String) -> Result<Value>, modifier: Modifier = Modifier, prefix: @Composable () -> Unit? = null, suffix: @Composable () -> Unit? = null, placeholder: @Composable () -> Unit? = null)

Helper for UI of Fields that can be input with TextField.

Parameters

toString

Converts the state value to a string.

toValue

Converts the string to a state value.

prefix

Composable to be displayed as a prefix; if null, it is not displayed.

suffix

Composable to be displayed as a suffix; if null, it is not displayed.

placeholder

Composable to be displayed as a placeholder; if null, the label is displayed with Text.