TextField

The Text field type used in Statamic.

Type Definition

Single line text input.

type 
TextField
= string | null;
Optional Text field
type Name = TextField;
// Result: string | null
Required Text field
type Name = NonNullable<TextField>;
// Result: string