3

I am using v-text-filed and in that, I am using textarea. I want to change the default height of textarea and make it small. Is it possible to do this?

            <v-text-field
              name="input-1"
              label="Label Text"
              textarea
            ></v-text-field>

2 Answers2

9

add rows property

<v-text-field
    name="input-1"
    label="Label Text"
    textarea
    rows="2"
></v-text-field>
Traxo
  • 18,464
  • 4
  • 75
  • 87
1

If you want to use textarea, I think use <v-textarea> tag is better. The example code is:

  <v-textarea
    name="content"
    hint="hint text"
    rows="2"
  ></v-textarea>

you also follow this link to get more details

Thxopen
  • 168
  • 6