TextFieldPrimary

@Composable
fun TextFieldPrimary(modifier: Modifier = Modifier, text: String, isSingleLine: Boolean = true, maxLines: Int = 1, labelText: String, onTextChanged: (String) -> Unit, hasError: Boolean = false, errorMessage: String? = null, visualTransformation: VisualTransformation = VisualTransformation.None, keyboardType: KeyboardType = KeyboardType.Text, imeAction: ImeAction = ImeAction.Next)

Custom text field for primary usage

Parameters

modifier

An optional modifier for this button

text

Text of the text field like hint

labelText

Label of this text field

onTextChanged

lambda operation when the user typed string

hasError

to show the error message or not.

errorMessage

the message to show about the error.

keyboardType

type of the keyboard. default is Text

imeAction

how the enter key react. default is next.