Input

The v-input component gives you a baseline to create your own custom inputs. It consists of a prepend/append slot, messages, and a default slot. It is recommended that you extend this component, but it can be used as a standalone.

Usage

v-input has 4 main areas. The prepended slot, the appended slot, the default slot, and messages. These make up the core logic shared between all form components.

API

v-input
Name
append-icon
Default
undefined
Type
string

Components.Inputs.

Name
background-color
Default
undefined
Type
string

Components.Inputs.

Name
color
Default
undefined
Type
string

コンポーネントに色を設定します。この色は、定義されている色の名前(例えばsuccesspurple)や、CSSの色指定(#033rgba(255, 0, 0, 0.5))を設定できます。

Name
dark
Default
false
Type
boolean

ダークテーマを適用します。

Name
disabled
Default
false
Type
boolean

Components.Inputs.

Name
error
Default
false
Type
boolean

Components.Inputs.

Name
error-count
Default
1
Type
number | string

Components.Inputs.

Name
error-messages
Default
[]
Type
string | array

Components.Inputs.

Name
height
Default
undefined
Type
number | string

Components.Inputs.

Name
hide-details
Default
false
Type
boolean

Components.Inputs.

Name
hint
Default
undefined
Type
string

Components.Inputs.

Name
label
Default
undefined
Type
string

Components.Inputs.

Name
light
Default
false
Type
boolean

ライトテーマを適用します。

Name
loading
Default
false
Type
boolean

Components.Inputs.

Name
messages
Default
[]
Type
string | array

Components.Inputs.

Name
persistent-hint
Default
false
Type
boolean

Components.Inputs.

Name
prepend-icon
Default
undefined
Type
string

Components.Inputs.

Name
readonly
Default
false
Type
boolean

Components.Inputs.

Name
rules
Default
[]
Type
array

Components.Inputs.

Name
success New in — v1.1
Default
false
Type
boolean

Components.Inputs.

Name
success-messages New in — v1.1
Default
[]
Type
string | array

Components.Inputs.

Name
validate-on-blur
Default
false
Type
boolean

Components.Inputs.

Name
value
Default
undefined
Type
any

Components.Inputs.

Edit this page | language on Github
Vuetify 3 is now available!The latest version of Vuetify is now available!
Learn about Vuetify 3's new features and functionality for modern Vue applications
Start exploringExplore