{% stories forms with { title: 'Atoms/Forms' } %}
  {% story radios with {
    name: 'Multiple radio buttons',
  } %}
    {% set options = [
      {
        title: 'Option 1',
      },
      {
        title: 'Option 2',
        disabled: true,
      },
      {
        title: 'Option 3',
        checked: 'checked',
        disabled: true,
      },
      {
        title: 'Option 4',
      },
      {
        title: 'Option 5',
      }
    ] %}
    <form>
      {% set fieldset_content %}
        {% set children %}
          {% for option in options %}
            {% embed "@rocketship-theme-starter-atoms/05-forms/form-element/form-element.html.twig" with {
              type: 'radio',
            } %}
              {% block form_element_content %}
                {% include "@rocketship-theme-starter-atoms/05-forms/input/input.html.twig" with {
                  attributes: create_attribute({
                    checked: option.checked,
                    disabled: option.disabled,
                    id: option.title|clean_class,
                    name: 'radio',
                    type: 'radio',
                  }),
                } %}
                {% include "@rocketship-theme-starter-atoms/05-forms/form-label/form-element-label.html.twig" with {
                  title: option.title,
                  attributes: create_attribute({ for: option.title|clean_class }),
                  required: option.required,
                  title_display: option.title_display,
                } %}
              {% endblock form_element_content %}
            {% endembed %}
          {% endfor %}
        {% endset %}

        {% include "@rocketship-theme-starter-atoms/05-forms/radio/radios.html.twig" with {
          attributes: create_attribute(),
          children,
        } %}
      {% endset %}

      {% include "@rocketship-theme-starter-atoms/05-forms/fieldset/fieldset.html.twig" with {
        attributes: create_attribute({ class: ['radios--wrapper'] }),
        children: fieldset_content,
        legend: {
          title: 'Radios',
        },
      } %}
    </form>
  {% endstory %}
{% endstories %}
