{% set requiredLabel = requiredLabel|default('form.required'|trans) %}
{% set className = className|default('') %}
{% set switch = switch|default(false) %}
<label class="{{ className }}" for="{{ id }}">
{% if switch %}
<span class="option option--left is-active js-switch-toggle__company" id="option1">{{ option1 }}</span>
<span class="option option--right js-switch-toggle__private" id="option2">{{ option2 }}</span>
{% endif %}
{{ label|raw }}
{% if required %}
<span class="js-label-required-star" title="{{ requiredLabel }}" aria-label="{{ requiredLabel }}">*</span>
{% endif %}
</label>