{% set paragraph_classes = [
  'spotify-playlist',
] %}
{% set attributes = attributes|default(create_attribute()) %}

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

{% block paragraph_content %}
  <iframe
    data-testid="embed-iframe"
    style="border-radius: 12px"
    src="https://open.spotify.com/embed/playlist/{{ paragraph_field_spotify_playlist_id }}?utm_source=generator&theme={{ paragraph_field_use_spotify_playlist_theme }}"
    width="100%"
    height="{{ paragraph_field_spotify_playlist_height }}"
    frameBorder="0"
    allowfullscreen=""
    allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
{% endblock %}
