EditText

fun EditText(modifier: Modifier = Modifier, value: String, placeholder: String, onValueChange: (String) -> Unit = {}, clearIconClick: () -> Unit = {}, isError: Boolean = false, errorMessage: String = "", supportingMessage: String = "", keyboardOptions: KeyboardOptions = KeyboardOptions.Default, focusRequester: FocusRequester? = null, enable: Boolean = true, colors: TextFieldColors = textFieldColors(), leadingIcon: @Composable () -> Unit? = { DefaultLeadingIcon(value) }, trailingIcon: @Composable () -> Unit? = { if (value.isNotBlank()) Icon(imageVector = Icons.Outlined.Clear, contentDescription = null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.clickable { clearIconClick() }) }, maxLines: Int = Int.MAX_VALUE, readOnly: Boolean = false, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })