https://kotlinlang.org logo
#getting-started
Title
# getting-started
m

Mercy Jemosop

10/19/2023, 4:16 AM
Copy code
TextField(
    modifier = Modifier
        .border(BorderStroke(width = 0.0.dp, brush = SolidColor(Color.Transparent)))
        .clip(RoundedCornerShape(15.dp)),
                  placeholder = { Text("Search Product") },
    value = searchQuery.value,
    onValueChange = { searchQuery.value = it }
)
Hello, I'm trying to remove default boarder(underline) in a TextField, what property can I use for that?
e

ephemient

10/19/2023, 4:23 AM
in this case (like many others),
TextField()
wraps
BasicTextField()
, so if you don't want Material's design choices, then just build your own component on the same foundation
m

Mercy Jemosop

10/19/2023, 6:02 AM
Thank you