meilisearch-admin/app/components/button.hbs
2022-03-27 16:04:08 +03:00

14 lines
446 B
Handlebars

<button
disabled={{this.disabled}}
type={{this.type}}
class="inline-flex items-center px-3 py-2 cursor-pointer border border-gray-300 rounded-md shadow-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none"
...attributes
{{on "click" this.handleClick}}
>
{{#if this.icon}}
<MdIcon @icon={{this.icon}} class="mx-1"/>
{{/if}}
{{#if this.text}}
<span class="mx-1">{{this.text}}</span>
{{/if}}
</button>