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

9 lines
271 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}}
2022-08-27 15:56:39 +00:00
<Icons::CheckboxOutline @size={{22}}/>
2022-04-26 10:28:40 +00:00
{{else}}
2022-08-27 15:56:39 +00:00
<Icons::CheckboxBlankOutline @size={{22}}/>
2022-04-26 10:28:40 +00:00
{{/if}}
2022-03-27 10:00:49 +00:00
<span class="ml-1">{{@label}}</span>
</label>