Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Remove underline from underlined Vuetify text-field

Given the Vuetify v-text-field component

( Playground )

<v-text-field label="Label" clearable variant="underlined" density="compact" hide-details="auto" color="primary" />

I want to remove the underline from it so I have a blank input without borders. I tried custom CSS like

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

  • text-decoration: none
  • border-bottom: none
  • border-bottom-color: transparent

but that didn’t work. Do you have any ideas?


Sidenote:

This input fills a slot inside a table cell and it’s a requirement to get rid of the underline because there already is a cell border.

>Solution :

Use the plain variant:

<v-text-field label="Label" clearable variant="plain" density="compact" hide-details="auto" color="primary"/>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading