select.html 368 B

123456789
  1. {% assign options = include.options | default: "One,Two,Three" | split: "," %}
  2. <div class="mb-3">
  3. <div class="form-label">{{ include.label | default: 'Select' }}</div>
  4. <select class="form-select" {% if include.multiple %} multiple{% endif %}>
  5. {% for option in options %}
  6. <option value="{{ forloop.index }}">{{ option }}</option>
  7. {% endfor %}
  8. </select>
  9. </div>