title: Jetpack Compose how to remove EditText/TextField underline and keep cursor?
body: <p>Hi I need to remove the underline in my TextField because it look ugly when the TextField is circular. I have sat the activeColor to transparent, but then the cursor wont show (because it's transparent). How can I remove the underline/activeColor and keep the cursor?</p>
  <p><a href="https://i.stack.imgur.com/nrutP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nrutP.png" alt="enter image description here" /></a></p>
  <p>Here is my Circular TextField code:</p>
  <pre><code>@Composable
  fun SearchBar(value: String) {
      // we are creating a variable for
      // getting a value of our text field.
      val inputvalue = remember { mutableStateOf(TextFieldValue()) }
  
      TextField(
              // below line is used to get
              // value of text field,
              value = inputvalue.value,
  
              // below line is used to get value in text field
              // on value change in text field.
              onValueChange = { inputvalue.value = it },
  
              // below line is used to add placeholder
              // for our text field.
              placeholder = { Text(text = &quot;Firmanavn&quot;) },
  
              // modifier is use to add padding
              // to our text field, and a circular border
              modifier = Modifier.padding(all = 16.dp).fillMaxWidth().border(1.dp, Color.LightGray, CircleShape),
  
              shape = CircleShape,
  
  
              // keyboard options is used to modify
              // the keyboard for text field.
              keyboardOptions = KeyboardOptions(
                      // below line is use for capitalization
                      // inside our text field.
                      capitalization = KeyboardCapitalization.None,
  
                      // below line is to enable auto
                      // correct in our keyboard.
                      autoCorrect = true,
  
                      // below line is used to specify our
                      // type of keyboard such as text, number, phone.
                      keyboardType = KeyboardType.Text,
              ),
  
              // below line is use to specify
              // styling for our text field value.
              textStyle = TextStyle(color = Color.Black,
                      // below line is used to add font
                      // size for our text field
                      fontSize = TextUnit.Companion.Sp(value = 15),
  
                      // below line is use to change font family.
                      fontFamily = FontFamily.SansSerif),
  
              // below line is use to give
              // max lines for our text field.
              maxLines = 1,
  
              // active color is use to change
              // color when text field is focused.
              activeColor = Color.Gray,
  
              // single line boolean is use to avoid
              // textfield entering in multiple lines.
              singleLine = true,
  
              // inactive color is use to change
              // color when text field is not focused.
              inactiveColor = Color.Transparent,
  
              backgroundColor = colorResource(id = R.color.white_light),
  
                      // trailing icons is use to add
                      // icon to the end of tet field.
              trailingIcon = {
                  Icon(Icons.Filled.Search, tint = colorResource(id = R.color.purple_700))
              },
      )
  </code></pre>