{% set errors = errors | default([]) %}
<div class="custom-radio form-check {{ (errors | length > 0) ? 'has-error': '' }}
{{ disabled|default(null) ? 'disabled' : '' }} {{ styleModifier|default('') }}">
<label>
<input class="custom-radio__input form-check-input {{ (errors | length > 0 )? 'is-invalid': '' }} {{ inputModifier|default('') }}"
type="radio"
name="{{ name }}"
id="{{ id }}"
{{ required|default(null) ? 'required' : '' }}
{{ disabled|default(null) ? 'disabled' : '' }}
{{ checked|default(null) ? 'checked' : '' }}
{% for key, value in inputAttributes | default([]) %}
{{key}}="{{value}}"
{% endfor %}
>
<span class="custom-radio__box"></span>
<span class="custom-radio__text form-check-label">
{{ label }}
{% if required|default(null) %}
{% if not noRequireHelper %}
<span title="Pflichtfeld" aria-label="Pflichtfeld">*</span>
{% endif %}
{% endif %}
</span>
{{ include('Form/Includes/form-errors.html.twig', _context) }}
</label>
</div>