John Cowen 4fbbfdcfa2 ui: New overlays (#9305)
Replaces ember-popover with tippy.js based overlay modifier.
2020-12-02 09:44:06 +00:00

35 lines
506 B
Handlebars

{{#if @for}}
<label
for={{@for}}
...attributes
>
{{yield}}
</label>
{{else if @href}}
{{#if @external}}
<a
href={{@href}}
target="_blank"
rel="noopener noreferrer"
...attributes
>
{{yield}}
</a>
{{else}}
<a
href={{@href}}
...attributes
>
{{yield}}
</a>
{{/if}}
{{else}}
<button
tabindex="-1"
type="button"
{{on 'click' (optional @onclick)}}
...attributes
>
{{yield}}
</button>
{{/if}}