<!-- replace identifiers with normal values (for,id,name etc...) -->
<label class="selection-control-label selection-control-checkbox " for="">
<input type="checkbox" id="1341586662" name="" class="" value="" @input.debounce="onChange">
<span class="
">
</span>
</label>
{% set input_type = type == 'toggle' ? 'toggle' : type == 'radio' ? 'radio' : 'checkbox' %}
{% set toggle_class = 'selection-control-' ~ input_type %}
{% set identifer = input_identifier ?: random() %}
<!-- replace identifiers with normal values (for,id,name etc...) -->
<label class="selection-control-label {{ toggle_class }} {{ color is defined ? color : '' }} {{ checkboxClass }}"
{% if labelLinked %}
for="{{ name }}"
{% endif %}
>
<input {{ checked is defined and checked ? 'checked' }}
{{ checkbox_attribute }}
{{ disabled is defined and disabled ? 'disabled' }}
{{ required is defined and required ? 'required' }}
type="{{ type == 'radio' ? 'radio' : 'checkbox' }}"
id="{{ identifer }}"
name="{{ name }}"
class="{{ color is defined ? color : '' }}"
value="{{ value }}"
@input.debounce="onChange"
>
{% if type == 'toggle' %}
<div class="toggle"></div>
{% endif %}
<span class="{{ label_before is defined and label_before ? '-order-1' }}
{{ show_label is defined and not show_label ? 'sr-only' }}">
{{ label }}
</span>
</label>
{
"labelLinked": true
}
No notes defined.