meilisearch-admin/app/components/input-checkbox.hbs

9 lines
273 B
Handlebars
Raw Normal View History

2022-03-27 10:00:49 +00:00
<label class="flex items-center cursor-pointer" {{on "click" this.onChange}} ...attributes>
2022-04-26 10:28:40 +00:00
{{#if @checked}}
<MdIcon::CheckboxOutline @size={{22}}/>
{{else}}
<MdIcon::CheckboxBlankOutline @size={{22}}/>
{{/if}}
2022-03-27 10:00:49 +00:00
<span class="ml-1">{{@label}}</span>
</label>