@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun InputDesign() {
Column(
modifier = Modifier.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
var text by remember { mutableStateOf("") }
OutlinedTextField(
value = text,
onValueChange = { newText -> text = newText },
singleLine = true,
shape = RoundedCornerShape(12.dp),
trailingIcon = {
IconButton(onClick = {}) {
Icon(
imageVector = Icons.Filled.Visibility,
contentDescription = "This is eye button"
)
}
},
leadingIcon = {
IconButton(onClick = {}) {
Icon(imageVector = Icons.Default.Email, contentDescription = "Email")
}
},
keyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.Email,
imeAction = ImeAction.Go
),
label = { Text("Enter Name Here") }
)
}
}
0 Comments