<div class="mt-2 ">
    <label for="text" class="form-label">Text input</label>
    <input type="text" class="mb-2 form-control" id="text" name="text" value="" size="60" maxlength="128" placeholder="Enter text here" disabled>
</div>
{%
  set classes = [
    wrapper ? 'mt-2' : '',
    floating ? 'floating' : ''
  ]
%}
{% if wrapper or floating %}
<div class="{{ classes|join(' ') }}">
{% endif %}
  {% if not (floating or no_label) %}
  <label for="{{ id }}" class="form-label">{{ title }}</label>
  {% endif %}
  <input type="text" class="mb-2 form-control"{% if no_label %} aria-label="{{ title }}"{% endif %} id="{{ id }}" name="{{ id }}" value="{{ value }}" size="60" maxlength="128" placeholder="{{ placeholder }}"{% if not enabled %} disabled{% endif %}>
  {% if floating %}
  <label for="{{ id }}" class="form-label">{{ title }}</label>
  {% endif %}
{% if wrapper or floating %}
</div>
{% endif %}
{
  "id": "text",
  "title": "Text input",
  "placeholder": "Enter text here",
  "enabled": false,
  "wrapper": true
}
  • Handle: @input-text--disabled
  • Preview:
  • Filesystem Path: src/components/01-elements/forms/elements/input-text/input-text.html.twig

No notes defined.