v-text-field textarea default height change?

10,560

Solution 1

add rows property

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

Solution 2

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

Share:
10,560

Related videos on Youtube

JustStartedProgramming
Author by

JustStartedProgramming

Updated on June 04, 2022

Comments

  • JustStartedProgramming
    JustStartedProgramming almost 2 years

    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>
    
    • Traxo
      Traxo about 6 years
      add e.g. rows="2" ?
    • JustStartedProgramming
      JustStartedProgramming about 6 years
      @Traxo It is working now, thanks