mirror of https://github.com/status-im/consul.git
27 lines
487 B
Handlebars
27 lines
487 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
|
|
type="button"
|
|
{{on 'click' (optional @onclick)}}
|
|
tabindex={{@tabindex}}
|
|
...attributes
|
|
>{{yield}}</button>
|
|
{{~/if}} |