{%- set value = (value is defined ? value : '1') -%}

<label
        {%- if block('attr') is defined %} {{ block('attr') }}{% endif %}>
    <input type="radio" value="{{ value }}"
        {%- if id is defined %} id="{{ id }}"{% endif %}
        {%- if class is defined %} class="{{ class }}"{% endif %}
        {%- if name is defined %} name="{{ name }}"{% endif %}
        {%- if checked is defined and checked %} checked{% endif %}
        {%- if autofocus is defined and autofocus and not craft.app.request.isMobileBrowser(true) %} autofocus{% endif %}
        {%- if disabled is defined and disabled %} disabled{% endif %}>
    {% if label is defined %}{{ label|raw }}{% endif %}
</label>
