{# djlint:off #}
<div class="my-2">
    {% include "core/basic_elements/label.html" %}
    <div class="px-2">
        {% for option in options %}
            <div class="form-check">
                <input id="{{ context.component.component_id }}-{{ name }}-{{ option.0 }}"
                       name="{{ name }}"
                       class="form-check-input"
                       type="radio"
                       value="{{ option.0 }}"
                       {% if not defer %}{% htmx_post indicator=indicator %}{% endif %}
                       {% if disabled %}disabled{% endif %}
                       {% if required %}required{% endif %} 
                       {% if initial_value and option.0 == initial_value %}checked{% endif %}>
                <label class="form-check-label" for="{{ context.component.component_id }}-{{ name }}-{{ option.0 }}">
                    {{ option.1 }}
                </label>
            </div>
        {% endfor %}
    </div>
</div>
{# djlint:on #}
