2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Vue.js/Vuetify】Textfieldsの下に余白が入ってしまう問題の解決

Last updated at Posted at 2021-07-18

原因

Text fieldsの下には、デフォルトだと
ヒントやエラーメッセージ表示用の要素が入っている。

image.png

対策

エラーやヒントのメッセージを表示しない場合はv-text-field要素にhide-detailsを空に指定する。

<v-text-field 
  hide-details
></v-text-field>

メッセージを出す時だけ要素を生成する場合はautoを指定

<v-text-field 
  hide-details="auto"
></v-text-field>

参考

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?