- {% set errors = errors | default([]) %}
- <div class="custom-checkbox custom-checkbox-button form-group form-check {{ (errors | length > 0) ? 'has-error': '' }} {{ disabled|default(false) ? 'disabled' : '' }} {{ styleModifier|default('') }}">
-     <label>
-         <input class="form-control custom-checkbox__input form-check-input {{ (errors | length > 0 )? 'is-invalid': '' }} {{ inputModifier|default('') }}"
-                type="checkbox"
-                name="{{ name }}"
-                id="{{ id }}"
-                value="{{ value|default('') }}"
-         {{ required|default(false) ? 'required' : '' }}
-         {{ disabled|default(false) ? 'disabled' : '' }}
-         {{ checked|default(false) ? 'checked' : '' }}
-         {% for key, value in inputAttributes | default([]) %}
-             {{key}}="{{value}}"
-         {% endfor %}
-         >
-         <span class="custom-checkbox__text form-check-label form-control">
-             {% if icon|default(null) %}
-                 <span class="icon icon-{{ icon }} mr-2" aria-hidden="true"></span>
-             {% endif %}
-             {% if accessibilityIcon|default(null) %}
-                 <span class="accessibility-item">
-                     <img src="/static/img/accessibility-icons/{{ accessibilityIcon.icon }}.svg" alt="{{ accessibilityIcon.alt }}" class="img-fluid " />
-                 </span>
-             {% endif %}
-             {{ label | raw }}
-             {% if required|default(false) %}
-                 <span title="Pflichtfeld" aria-label="Pflichtfeld">*</span>
-             {% endif %}
-         </span>
-         {{ include('Form/Includes/form-errors.html.twig', _context) }}
-         {{ include('Form/Includes/form-control-help-text.html.twig', _context) }}
-     </label>
- </div>