1
0
mirror of https://github.com/flarum/core.git synced 2025-10-25 05:36:07 +02:00
Files
php-flarum/ember/forum/app/templates/components/ui/switch-input.hbs

13 lines
250 B
Handlebars

<label>
<div class="switch-control">
{{input type="checkbox" checked=toggleState}}
<div class="switch {{if loading "loading"}}">
</div>
</div>
{{label}}
{{#if loading}}
{{ui/loading-indicator size="tiny"}}
{{/if}}
</label>