Textarea
Tag name: <vscode-textarea>
Multi-line text input.
When participating in a form, it supports the :invalid
pseudo class. Otherwise the error styles
can be applied through the invalid
property.
Properties
autocomplete
Name | autocomplete |
---|---|
Attribute | autocomplete |
Type |
|
Default |
|
autofocusreflects
Name | autofocus |
---|---|
Attribute | autofocus |
Type |
|
Default |
|
cols
Name | cols |
---|---|
Attribute | cols |
Type |
|
Default |
|
defaultValue
Name | defaultValue |
---|---|
Attribute | default-value |
Type |
|
Default |
|
disabledreflects
Name | disabled |
---|---|
Attribute | disabled |
Type |
|
Default |
|
formreadonly
Name | form |
---|---|
Type |
|
invalidreflects
Name | invalid |
---|---|
Attribute | invalid |
Type |
|
Default |
|
label
Name | label |
---|---|
Type |
|
Default |
|
maxLength
Name | maxLength |
---|---|
Attribute | maxLength |
Type |
|
Default |
|
maxlength
Name | maxlength |
---|---|
Type |
|
Description | Lowercase alias to maxLength |
minLength
Name | minLength |
---|---|
Attribute | minLength |
Type |
|
Default |
|
minlength
Name | minlength |
---|---|
Type |
|
Description | Lowercase alias to minLength |
monospacereflects
Name | monospace |
---|---|
Attribute | monospace |
Type |
|
Default |
|
Description | Use monospace fonts. The font family, weight, size, and color will be the same as set in the VSCode code editor. |
name
Name | name |
---|---|
Attribute | name |
Type |
|
Default |
|
placeholder
Name | placeholder |
---|---|
Attribute | placeholder |
Type |
|
Default |
|
readonlyreflects
Name | readonly |
---|---|
Attribute | readonly |
Type |
|
Default |
|
requiredreflects
Name | required |
---|---|
Attribute | required |
Type |
|
Default |
|
resize
Name | resize |
---|---|
Attribute | resize |
Type |
|
Default |
|
rows
Name | rows |
---|---|
Attribute | rows |
Type |
|
Default |
|
spellcheck
Name | spellcheck |
---|---|
Attribute | spellcheck |
Type |
|
Default |
|
validationMessagereadonly
Name | validationMessage |
---|
validityreadonly
Name | validity |
---|---|
Type |
|
value
Name | value |
---|---|
Attribute | value |
Type |
|
versionreadonly
Name | version |
---|---|
Type |
|
Description | VSCode Elements version |
willValidatereadonly
Name | willValidate |
---|
wrappedElementreadonly
Name | wrappedElement |
---|---|
Type |
|
Description | Getter for the inner textarea element if it needs to be accessed for some reason. |
Methods
checkValidity()
: boolean
Name | checkValidity |
---|
reportValidity()
: boolean
Name | reportValidity |
---|
Events
change
Name | change |
---|---|
Type | Event |
input
Name | input |
---|---|
Type | InputEvent |
CSS Custom Properties
--vscode-editor-background
Name | --vscode-editor-background |
---|---|
Default value | #1f1f1f |
--vscode-editor-font-family
Name | --vscode-editor-font-family |
---|---|
Default value | monospace |
--vscode-editor-font-size
Name | --vscode-editor-font-size |
---|---|
Default value | 14px |
--vscode-editor-font-weight
Name | --vscode-editor-font-weight |
---|---|
Default value | normal |
--vscode-editor-foreground
Name | --vscode-editor-foreground |
---|---|
Default value | #cccccc |
--vscode-editor-inlineValuesForeground
Name | --vscode-editor-inlineValuesForeground |
---|---|
Default value | rgba(255, 255, 255, 0.5) |
--vscode-focusBorder
Name | --vscode-focusBorder |
---|---|
Default value | #0078d4 |
--vscode-font-family
Name | --vscode-font-family |
---|---|
Default value | sans-serif |
--vscode-font-size
Name | --vscode-font-size |
---|---|
Default value | 13px |
--vscode-font-weight
Name | --vscode-font-weight |
---|---|
Default value | normal |
--vscode-input-placeholderForeground
Name | --vscode-input-placeholderForeground |
---|---|
Default value | #989898 |
--vscode-scrollbar-shadow
Name | --vscode-scrollbar-shadow |
---|---|
Default value | #000000 |
--vscode-scrollbarSlider-activeBackground
Name | --vscode-scrollbarSlider-activeBackground |
---|---|
Default value | rgba(191, 191, 191, 0.4) |
--vscode-scrollbarSlider-background
Name | --vscode-scrollbarSlider-background |
---|---|
Default value | rgba(121, 121, 121, 0.4) |
--vscode-scrollbarSlider-hoverBackground
Name | --vscode-scrollbarSlider-hoverBackground |
---|---|
Default value | rgba(100, 100, 100, 0.7) |
--vscode-settings-textInputBackground
Name | --vscode-settings-textInputBackground |
---|---|
Default value | #313131 |
--vscode-settings-textInputBorder
Name | --vscode-settings-textInputBorder |
---|---|
Default value | transparent |
--vscode-settings-textInputForeground
Name | --vscode-settings-textInputForeground |
---|---|
Default value | #cccccc |