<div class="mdc-select
  {{unless @label "mdc-select--no-label"}}
  {{if @disabled "mdc-select--disabled"}}
  {{if @required "mdc-select--required"}}
  {{if this.isOutlined "mdc-select--outlined" "mdc-select--filled"}}
  {{if @leadingIcon "mdc-select--with-leading-icon"}}"
  {{did-insert this.didInsert}}
  {{did-update this.select @value}}
  {{custom-property "--mdc-select-width" @width}}
    ...attributes>
  <div class="mdc-select__anchor"
       role="button"
       aria-haspopup="listbox"
       aria-expanded="false"
       aria-required={{@required}}
       aria-labelledby="{{this.labelId}} {{this.selectedTextId}}">

    {{#if this.isOutlined}}
      <span class="mdc-notched-outline">
        <span class="mdc-notched-outline__leading"></span>
        {{#if @label}}
          <span class="mdc-notched-outline__notch">
              <span id={{this.labelId}} class="mdc-floating-label">{{@label}}</span>
            </span>
        {{/if}}
        <span class="mdc-notched-outline__trailing"></span>
      </span>

      {{#if @leadingIcon}}
        <i class="material-icons mdc-select__icon" tabindex="0" role="button">{{@leadingIcon}}</i>
      {{/if}}

    {{else}}
      <span class="mdc-select__ripple"></span>
      {{#if @label}}
          <span id={{this.labelId}} class="mdc-floating-label">{{@label}}</span>
      {{/if}}

      {{#if @leadingIcon}}
        <i class="material-icons mdc-select__icon" tabindex="0" role="button">{{@leadingIcon}}</i>
      {{/if}}
    {{/if}}

      <span class="mdc-select__selected-text-container">
          <span id={{this.selectedTextId}} class="mdc-select__selected-text"></span>
      </span>

      <span class="mdc-select__dropdown-icon">
          <svg class="mdc-select__dropdown-icon-graphic" viewBox="7 10 10 5" focusable="false">
            <polygon class="mdc-select__dropdown-icon-inactive" stroke="none" fill-rule="evenodd"
                     points="7 10 12 15 17 10"></polygon>
            <polygon class="mdc-select__dropdown-icon-active" stroke="none" fill-rule="evenodd"
                     points="7 15 12 10 17 15"></polygon>
          </svg>
      </span>
      {{#unless this.isOutlined}}
          <span class="mdc-line-ripple"></span>
      {{/unless}}
  </div>

  <!-- list of options in the drop-down -->
  <div class="mdc-select__menu mdc-menu mdc-menu-surface mdc-menu-surface--fullwidth" role="listbox">
    <ul class="mdc-deprecated-list">
      {{#if @firstOption}}
        <MdcListItem class={{@firstOption.classname}} data-value="" role="option" @disabled={{@firstOption.disabled}}>
          <MdcListItemText>{{@firstOption.text}}</MdcListItemText>
        </MdcListItem>
      {{/if}}
      {{#each @options as |option|}}
        {{#if option.divider}}
          <MdcListDivider />
        {{else}}
          <MdcListItem
              @disabled={{get option this.disabledKey}}
              @selected={{option.selected}}
              data-value={{get option this.valueKey}}
              role="option"
              class="{{option.class}}">
            {{#if (get option this.textKey)}}
              <MdcListItemText>{{get option this.textKey}}</MdcListItemText>
            {{/if}}
          </MdcListItem>
        {{/if}}
      {{/each}}
    </ul>
  </div>
</div>

{{#if this.helperLine}}
  <div class="mdc-select-helper-text
    {{if this.persistentHelperText "mdc-select-helper-text--persistent"}}
    {{if @errorMessage "mdc-select-helper-text--validation-msg"}}"
       id={{this.helperId}}
       aria-hidden="true">{{this.helperText}}</div>
{{/if}}