As I set the Height of TextField to 40dp, I can't see the Text properly like this image.
How can I solve this problem?

@Composable
fun SearchTextField(
onSearchClick: () -> Unit
) {
var text by remember { mutableStateOf("") }
TextField(
value = text,
onValueChange = { text = it },
placeholder = { Text("Search") },
singleLine = true,
leadingIcon = {
Icon(
imageVector = Icons.Filled.Search,
contentDescription = ""
)
},
modifier = Modifier.height(40.dp),
shape = RoundedCornerShape(10.dp),
colors = TextFieldDefaults.textFieldColors(
focusedIndicatorColor = Color.Transparent,
unfocusedIndicatorColor = Color.Transparent
),
keyboardActions = KeyboardActions {
onSearchClick()
},
textStyle = TextStyle.Default
)
}