Fork me on GitHub

Also, checkout the Text Widget page.

Text Area Widget

form.elements['my_textarea'] = {
  title: 'Phrase',
  type: 'textarea',
  default_value: 'Hello'
};