Skip to content

Text Control

Simple single-line text input for short content like titles, names, or labels.

OptionTypeDefaultDescription
labelstring-Field label shown in editor
controlstringtextControl type
placeholderstring-Placeholder text
defaultstring-Default value
{
"attributes": {
"heading": {
"type": "string",
"default": "Welcome",
"wbs": {
"label": "Heading",
"control": "text",
"placeholder": "Enter heading text..."
}
}
}
}
<h2>{{ attributes.heading }}</h2>

Use Text for:

  • Block titles and headings
  • Button labels
  • Names and labels
  • Short descriptive text

For longer content, use Textarea or Rich Text controls.