<label for="text">Text</label>
<input id="text" name="text" placeholder="Example input" type="text" value="" />
<span class="helptext">Description for this text input.</span>
<label for="{{ name }}">{{ label }}{% if error %} (Error){% elseif disabled %} (Disabled){% endif %}</label>
<input {% if error %}class="input--error" {% endif %}id="{{ name }}" name="{{ name }}" placeholder="{{ placeholder }}" type="{{ type }}" value="{{ errorValue if error or value }}"{{ ' disabled' if disabled }}{{ ' required' if required }} />
{% if error %}<p class="input-group__error">{% render '@svg', {svg: 'error'}, true %}{{ errorMessage | safe }}</p>{% endif %}
{% if description %}
<span class="helptext">{{ description }}</span>
{% endif %}
{
  "label": "Text",
  "name": "text",
  "type": "text",
  "description": "Description for this text input.",
  "placeholder": "Example input",
  "errorMessage": "Sorry, that appears to be incorrect.",
  "errorValue": "Incorrect input",
  "error": false,
  "required": false,
  "value": ""
}

There are no notes for this item.