MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.core.common.ui.components/CustomTextField

CustomTextField

[jvm]\

@Composable

fun CustomTextField(modifier: Modifier = Modifier, label: String = "", hint: String = "", enabled: Boolean = true, secure: Boolean = false, labelColor: Color = Color.White, backgroundColor: Color = Color.White, textColor: Color = Color.Black, labelExtraSpacing: Dp = 0.dp, labelStyle: TextStyle = MaterialTheme.typography.caption, value: String, singleLine: Boolean = false, onValueChange: (String) -> Unit, endButton: @Composable() -> Unit? = null)

Custom text field.

Parameters

jvm

   
modifier Modifier
label Label to be shown above the field
hint Hint or placeholder
enabled Enabled/disabled flag
secure Secure flag
labelColor Label color
backgroundColor Background color
textColor Text color
labelExtraSpacing Label extra spacing
labelStyle Label style
value Initial value
singleLine Toggle for single line fields
onValueChange On value change callback
endButton Button to be displayed on the right side