{# LIBRARIES #}
{{ attach_library('ui_patterns/libraries.bs_collapse') }}
{{ attach_library('ui_patterns/tm_im.tm_im_lib') }}

{# LIBRARIES #}
{% set classes = [
  "im-sbr-#{ position }",
   hide_toggle ? "im-no-tgl",
] %}
{% set attributes = attributes|default(create_attribute())
  .setAttribute('id', 'im-wrp') %}

{# TEMPLATE #}
{% if content %}
  <div {{ attributes.addClass(classes) }}>
    {{ content }}
  </div>
{% endif %}
