Skip to main content

String Field

type: "string"

A text input.

Additional Properties

PropertyTypeDescription
defaultValuestringThe default value.
regexstringA regular expression the entered text is validated against.

Example

mobro-widget-config.json
{
"config": [
{
"name": "title",
"label": "Title",
"type": "string",
"defaultValue": "CPU"
}
]
}

Usage

To read the value of this field in a widget, use useStringField.