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
|
2021-10-11 15:03:59 +00:00
|
|
|
type={{or @type 'button'}}
|
2020-12-02 09:43:34 +00:00
|
|
|
{{on 'click' (optional @onclick)}}
|
2021-01-25 18:13:54 +00:00
|
|
|
tabindex={{@tabindex}}
|
2020-12-02 09:43:34 +00:00
|
|
|
...attributes
|
2021-01-05 16:59:16 +00:00
|
|
|
>{{yield}}</button>
|
|
|
|
{{~/if}}
|