A text input field used to store short-form content, such as titles or descriptions.
For indents, embolding and other formatting, use the rich-text field type instead.
For additional properties common to all Field types, check the Field type definition.
Set this to "string"
to use the String Field.
The name of the field for internal use.
All properties marked as REQUIRED must be specified for the field to work properly.
{type: 'string',name: 'title',label: 'Title'}
Setting list: true will make the value an array
{type: 'string',name: 'title',label: 'Title',list: true}
By default, the text field is used for strings. To use a different core field plugin, specify it with the ui.component property.
{label: "Description",name: "description",type: "string",ui: {component: "textarea"}}
You can create your own components for the TinaCMS editor to store String type content.
{label: "Title",name: "title",type: "string",ui: {component: ({ input }) => {return (<div><label htmlFor="title">Title: </label><input {...input}></input></div>);},},}
© TinaCMS 2019–2025