String

Renders a single-line text input and returns a string.

Renders a single-line text input and returns a string. Use for short text content like headings, button labels and names.

Returns: A string.

Example

---
attributes:
  heading:
    type: string
    label: Heading
    default: Welcome to our experience
---
<h1>{{ heading }}</h1>

Usage

String variables are best suited for single-line content. For multi-line or rich text content, use the text type instead.

---
attributes:
  title:
    type: string
    label: Title
    default: Our Story
  subtitle:
    type: string
    label: Subtitle
    hint: A short tagline displayed below the title
---
<h1>{{ title }}</h1>
{% if subtitle != blank %}
  <p>{{ subtitle }}</p>
{% endif %}

On this page