{#
/**
 * @file
 *   Styled button rounded.
 *
 * @param 'primary' $theme
 * @param $icon_class
 */
#}

{% extends '@ui/Button/StyledButton.twig' %}

{% set icon_only = icon_only ?? null %}

{% set attr =
  merge_html_attributes(
    attr ?? null,
    null,
    {
      class: ['rounded-full']
    }
  )
%}

{% if icon_only %}
  {% set icon_attr =
    merge_html_attributes(
      icon_attr ?? null,
      {
        class: 'h-[0.75lh] aspect-square'
      },
      null
    )
  %}
{% endif %}
