.mp-input-group-container
    - const disabled = $attrs['disabled']
    - const busy = $attrs['busy'];
    - const inputAttrs = {type: 'text', placeholder: $attrs['placeholder'], value}
    if disabled || busy
      - inputAttrs.disabled = true
    input.mp-input-group-input(
      attrs=inputAttrs
      on={
        input: $helpers.setValue,
        keyup: $helpers.submitIfEnter,
      }
    )
    mp-button.mp-button-primary.mp-input-group-btn(
      attrs={disabled: disabled || value.trim() === ''}
      on={click: $helpers.submit}
    )
      if $attrs['busy']
        .mp-input-group-spinner
          include ./spinner.svg
      else
        = $attrs['label']
