StringField

String field within a form.

Type parameters

  • W

Hierarchy

Index

Properties

Optional defaultValue

defaultValue: T

Default value for field.

Optional displayName

displayName: undefined | string

The display name for this field shown to the user when validation fails. This should be human readable.

default

If no display name is given the key is used

key

key: string

Field key. This key will be the location in customData that the field's data will be written to when the form has been submitted.

See form for more details.

type

type: "string"

Optional validation

validation: Partial<object>

widget

widget: W

What input wiget is used.

default

StringWidgets {@link StringWidgets}