Files
vault/ui/lib/core/addon/components/toggle-button.hbs
claire bontempo d7b8dddd2e UI: HDS adoption replace <Button> in lib/core (2) (#24122)
* first four buttons

* swap button in object list input and update styling

* swap search select buttons

* string list input

* update text file

* toggle button

* add comment

* swap eye-con

* revert toggle button, add deprecation note

* cleanup css for object list input

* fix test

* revert toggle changes

* add margin
2023-11-15 19:58:41 +00:00

13 lines
449 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
{{! DEPRECATED use <Hds::Reveal /> instead https://helios.hashicorp.design/components/reveal }}
<button type="button" class="button is-transparent has-text-info" {{on "click" (fn @onClick (not @isOpen))}} ...attributes>
{{#if @isOpen}}
<Icon @name="chevron-up" />{{this.openLabel}}
{{else}}
<Icon @name="chevron-down" />{{this.closedLabel}}
{{/if}}
</button>