shadcnui

how to remove the "border" around the shadcn select when the cursor is inside


I have a select which I only want a dropdown arrow and a line beneath. I manage to remove the top/left/right borders. Even when I dropdown the select, there is no border. However, when the dropdown is close and the cursor is in the text, a black border shows up.

How do I remove this border ?

Thanks very much !

enter image description here


Solution

  • Try to remove ring, add class to SelectTrigger as below:

    class="ring-0 focus:ring-0"