{#
/**
 * @file
 * Default theme implementation of an iframe used to share a webform.
 *
 * Available variables:
 * - attributes: HTML attributes for the iframe element.
 * - javascript: Flag to include JavaScript.
 * - option: JavaScript options.
 *
 * @see template_preprocess_webform_share_iframe()
 *
 * @ingroup themeable
 */
#}
{%
  set classes = [
    'webform-share-iframe',
  ]
%}
<iframe{{ attributes.addClass(classes) }}></iframe>
{% if javascript %}
<script src="{{ script }}"></script>
<script>iFrameResize({{ options }}, '.webform-share-iframe');</script>
{% endif %}
