2021-01-05 16:59:16 +00:00
|
|
|
{{#if @for~}}
|
2020-12-02 09:43:34 +00:00
|
|
|
<label
|
|
|
|
for={{@for}}
|
|
|
|
...attributes
|
2021-01-05 16:59:16 +00:00
|
|
|
>{{yield}}</label>
|
|
|
|
{{~else if @href~}}
|
|
|
|
{{~#if @external~}}
|
2020-12-02 09:43:34 +00:00
|
|
|
<a
|
|
|
|
href={{@href}}
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
...attributes
|
2021-01-05 16:59:16 +00:00
|
|
|
>{{yield}}</a>
|
|
|
|
{{~else~}}
|
2020-12-02 09:43:34 +00:00
|
|
|
<a
|
|
|
|
href={{@href}}
|
|
|
|
...attributes
|
2021-01-05 16:59:16 +00:00
|
|
|
>{{yield}}</a>
|
|
|
|
{{~/if~}}
|
|
|
|
{{~else~}}
|
2020-12-02 09:43:34 +00:00
|
|
|
<button
|
|
|
|
tabindex="-1"
|
|
|
|
type="button"
|
|
|
|
{{on 'click' (optional @onclick)}}
|
|
|
|
...attributes
|
2021-01-05 16:59:16 +00:00
|
|
|
>{{yield}}</button>
|
|
|
|
{{~/if}}
|