Text

A Text field is single text input. You can use this field for short strings such as titles, handles, or headings.

Text Field
{
  component: 'text',
  name: 'textName',
  label: 'Text Field',
  description: 'A text input',
  defaultValue: 'This is default value',
}

Key

Type

Required

Description

component

string

yes

The name of the field component. (text)

name

string

yes

The name of the field that will be accessible by the cms prop of the component.

label

string

no

A human-readable label for the field.

description

string

no

A short description of the setting scope.

defaultValue

string

no

The default value for the field.

Last updated