Textarea

Basic example

HTML

<vscode-textarea placeholder="Type something"></vscode-textarea>

Monospace mode

In monospace mode, the same font is used as in VSCode in the code editor.

HTML

<vscode-textarea placeholder="Type something" monospace></vscode-textarea>

Rows and cols attributes

The component default size is 320 x 40. If rows or cols attributes are set it will be resized to the proper size.

HTML

<vscode-textarea 
  placeholder="Type something" 
  rows="10" 
  cols="40"
></vscode-textarea>

Last modified: Sat, 30 Dec 2023 22:41:27 GMT