Text Field Type

Additional attributes, defaults, and usage example for text fields.

Control Type
Simple textarea for plain text.
Stored Value
Plain text string.

Usage Example

Here is an example that shows a notes field on a page.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
export default {
  models: {
    Page: {
      fields: [
        { name: 'title', type: 'string', required: true },
        { name: 'notes', type: 'text' },
      ],
    },
  },
}

This will render a simple textarea element in the page editor.

Text Preview Field Control
Text Preview Field Control