{{!
  Copyright IBM Corp. 2016, 2025
  SPDX-License-Identifier: BUSL-1.1
}}

<form {{on "submit" (perform this.handleSearch)}}>
  <Hds::SegmentedGroup as |S|>
    <S.TextInput
      @value={{this.query}}
      placeholder="Search secret path"
      aria-label="Search by secret path"
      size="32"
      {{on "input" this.handleInput}}
      {{on "keydown" this.handleKeyDown}}
      data-test-kv-list-filter
    />
    <S.Button
      @color="secondary"
      @text="Search"
      @icon={{if this.handleSearch.isRunning "loading" "search"}}
      type="submit"
      data-test-kv-list-filter-submit
    />
  </Hds::SegmentedGroup>
</form>