Files
threshold-ui/ui/core/app/components/copyable/index.hbs
T

24 lines
521 B
Handlebars

{{#if this.isClipboardLibrarySupported}}
<span
id={{this.id}}
class="copyable"
{{did-insert this.register}}
{{will-destroy this.destroy}}
>
<span class="copyable-content">
{{yield}}
</span>
<Rose::Button
id={{this.copyableButtonId}}
aria-describedby={{this.id}}
class="copyable-button"
@style="ghost"
@iconOnly={{this.icon}}
title={{this.copyableButtonText}}
>{{this.copyableButtonText}}</Rose::Button>
</span>
{{else}}
{{yield}}
{{/if}}