<div class="ddn {{mod}} {{#if error}}ddn_error{{/if}}">
  <select id="{{id}}" name="{{id}}" {{#if disabled}}disabled{{/if}}>
    {{#if options}}
      {{#each options as |option|}}
        <option
          {{#if (eq @index ../selectedIndex)}}selected{{/if}}
          value="{{option.value}}"
        >
          {{option.label}}
        </option>
      {{/each}}
    {{else}}
      <option value="item0" disabled selected hidden>{{placeholder}}</option>
      <option value="item1">Item value</option>
      <option value="item2">Item value 2</option>
      <option value="item3">Item value 3</option>
      <option value="item4">Item value 4</option>
    {{/if}}
  </select>
  <span class="icon">
    <i class="fas fa-chevron-down"></i>
  </span>
</div>
