String Field Type

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

Control Type
Simple text input.
Stored Value
The input string.

Usage Example

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
export default {
  models: {
    Page: {
      fields: [{ name: 'title', type: 'string' }],
    },
  },
}

This will render a simple text input in the page editor.

String Field Control
String Field Control