{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

<Hds::Button
  data-test-download-button
  @icon={{if @hideIcon "" "download"}}
  @text={{or @text "Download"}}
  @color={{@color}}
  @iconPosition={{or @iconPosition "leading"}}
  @isIconOnly={{@isIconOnly}}
  {{on "click" this.handleDownload}}
  ...attributes
/>