{% set classes = [
  'paragraph',
  'paragraph--placeholder',
] %}
{% set attributes = attributes|default(create_attribute({})) %}
{% set attributes = attributes.setAttribute('class', classes) %}
{% set attributes = attributes.setAttribute('data-js', 'placeholder') %}

{% extends "@ui-paragraph/paragraph.html.twig" %}

{% block paragraph_content %}
  {% if paragraph_field_title %}
    <div class="paragraph__title">
      {{ paragraph_field_title }}
    </div>
  {% endif %}

  {% if paragraph_field_body %}
    <div class="paragraph__body">
      {{ paragraph_field_body }}
    </div>
  {% endif %}
{% endblock %}
