<div class="toggle__wrapper">
<div class="toggle">
<input class="toggle__input" type="checkbox" id="toggle" checked/>
<label class="toggle__label" for="toggle" />
</div>
</div>
<div class="toggle__wrapper">
<div class="toggle">
<input class="toggle__input" type="checkbox" id="{{ id }}" {{#if on}}checked{{/if}}/>
<label class="toggle__label" for="{{ id }}" />
</div>
{{#if postText}}<label class="toggle__text" for="{{ id }}">{{postText}}</label>{{/if}}
</div>
{
"on": true,
"id": "toggle"
}
A Toggle allows the user to enable or disable a feature synchronously.
Use a toggle for changes that don’t require review, and for settings that are independent from one another.