KPInputEmailField

fun KPInputEmailField(email: String, onValueChange: (String) -> Unit?, modifier: Modifier = Modifier, enabled: Boolean = true, readOnly: Boolean = false, label: @Composable () -> Unit? = null, placeholder: @Composable () -> Unit? = null, error: String? = null, keyboardOptions: KeyboardOptions = KeyboardOptions.Default.copy(keyboardType = KeyboardType.Email), keyboardActions: KeyboardActions = KeyboardActions.Default, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, shape: Shape = MaterialTheme.shapes.small)

Composable function representing an email input field with customizable appearance and behavior tailored for the Komposto theme.

Parameters

email

The current value of the email input field.

onValueChange

Callback invoked when the value of the email input field changes.

modifier

Optional Modifier that can be applied to the input field.

enabled

Indicates whether the input field is enabled for user interaction.

readOnly

Indicates whether the input field is read-only.

label

Optional label displayed above the input field.

placeholder

Optional placeholder text displayed when the input field is empty.

error

Optional error message displayed below the input field if there is an error. If it's null no error will be displayed.

keyboardActions

KeyboardActions defining keyboard actions for the input field. If you don't provide one it will auto complete the suggestion and clear the keyboard for any action.

interactionSource

MutableInteractionSource representing the source of user interactions.

shape

Shape of the input field.