Textarea

Textarea components are used for collecting large amounts of textual data.

Usage

A multi-line text-field is useful for larger amounts of text.


API

v-textarea
Name
append-icon
Default
undefined
Type
string

Appends an icon to the component, uses the same syntax as v-icon

Name
append-icon-cb
Default
null
Type
function

Callback for appended icon when clicked

New in — v1.1
Name
append-outer-icon
Default
undefined
Type
string

Appends an icon to the outside of v-text-field's input, uses same syntax as v-icon

New in — v1.1
Name
append-outer-icon-cb
Default
null
Type
function

Callback for appended outer icon when clicked

Name
auto-grow
Default
false
Type
boolean
Name
autofocus
Default
false
Type
boolean

Enables autofocus

Name
background-color
Default
undefined
Type
string

Changes the background-color of the input

Name
box
Default
false
Type
boolean

Applies the alternate box input style

Name
browser-autocomplete
Default
undefined
Type
string

Configures the default <input> autocomplete attribute

Name
clear-icon
Default
'$vuetify.icons.clear'
Type
string

Applied when using clearable and the input is dirty

Name
clear-icon-cb
Default
null
Type
function

Callback for clear icon when clicked

Name
clearable
Default
false
Type
boolean

Add input clear functionality, default icon is Material Icons clear

Name
color
Default
'primary'
Type
string

Applies specified color to the control - it can be the name of material color (for example success or purple) or css color (#033 or rgba(255, 0, 0, 0.5))

Name
counter
Default
undefined
Type
boolean | number | string

Creates counter for input length; if no number is specified, it defaults to 25. Does not apply any validation.

Name
dark
Default
false
Type
boolean

Applies the dark theme variant

Name
disabled
Default
false
Type
boolean
Name
dont-fill-mask-blanks
Default
false
Type
boolean

Disables the automatic character display when typing

Name
error
Default
false
Type
boolean

Puts the input in a manual error state

Name
error-count
Default
1
Type
number | string

The total number of errors that should display at once

Name
error-messages
Default
[]
Type
string | array

Puts the input in an error state and passes through custom error messsages. Will be combined with any validations that occur from the rules prop. This field will not trigger validation

Name
flat
Default
false
Type
boolean

Mixins.Soloable.props.flat

Name
full-width
Default
false
Type
boolean

Desginates input type as full-width

Name
height
Default
undefined
Type
number | string

Sets the component height

Name
hide-details
Default
false
Type
boolean

Hides hint, validation errors

Name
hint
Default
undefined
Type
string

Hint text

Name
label
Default
undefined
Type
string

Sets input label

Name
light
Default
false
Type
boolean

Applies the light theme variant

Name
loading
Default
false
Type
boolean | string

Displays linear progress bar. Can either be a String which specifies which color is applied to the progress bar (any material color or theme color - primary, secondary, success, info, warning, error) or a Boolean which uses the component color (set by color prop - if it's supported by the component) or the primary color

Name
mask
Default
undefined
Type
object | string

Apply a custom character mask to the input. See mask table below for more information

Name
messages
Default
[]
Type
string | array

Displays a list of messages or message if using a string

Name
no-resize
Default
false
Type
boolean
Name
outline
Default
false
Type
boolean

Applies the outline style to the input

Name
persistent-hint
Default
false
Type
boolean

Forces hint to always be visible

Name
placeholder
Default
undefined
Type
string

Sets the input’s placeholder text

Name
prefix
Default
undefined
Type
string

Displays prefix text

Name
prepend-icon
Default
undefined
Type
string

Prepends an icon to the component, uses the same syntax as v-icon

Name
prepend-icon-cb
Default
null
Type
function

Callback for prepended icon when clicked

New in — v1.1
Name
prepend-inner-icon
Default
undefined
Type
string
New in — v1.1
Name
prepend-inner-icon-cb
Default
null
Type
function
Name
readonly
Default
false
Type
boolean
Name
return-masked-value
Default
false
Type
boolean

Returns the unmodified masked string

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

Reverses the input orientation

Name
row-height
Default
24
Type
number | string
Name
rows
Default
5
Type
number | string
Name
rules
Default
[]
Type
array

Accepts an array of functions that return either True or a String with an error message

Name
single-line
Default
false
Type
boolean

Label does not move on focus/dirty

Name
solo
Default
false
Type
boolean

Mixins.Soloable.props.solo

Name
solo-inverted
Default
false
Type
boolean

Mixins.Soloable.props.soloInverted

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

Puts the input in a manual success state

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

Puts the input in a success state and passes through custom success messsages.

Name
suffix
Default
undefined
Type
string

Displays suffix text

Name
type
Default
'text'
Type
string

Sets input type

Name
validate-on-blur
Default
false
Type
boolean

Delays validation until blur event

Name
value
Default
undefined
Type
any

Input value

Examples

Auto grow

Textarea can automatically resize when entered text exceeds its size.


Beautiful FormsNew in v1.1

Utilizing alternative input styles, you can create amazing interfaces that are easy to build and easy to use.