{# LIBRARIES #}
{{ attach_library('ui_patterns/tm_bits_more_less.tm_bits_more_less_lib') }}

{# VARIABLES #}
{% set content = content|default(false) %}
{% set more_str = more_str|default('More') %}
{% set less_str = less_str|default('Less') %}
{% set status = status|default('default') %}

{# TEMPLATE #}
{% if content %}
  <div class="ml-wrapper">
    {% include "@molecules/tm-bs/collapse/collapse.twig" with {
      "label": more_str,
      "tgl_label": less_str,
      "content": content,
      "aiid": "ml-" ~ random(),
      "toggle": "chevron",
      "link_class": "ml-toggler belian btn btn-" ~ status,
      "content_class": "ml-inner",
    } %}
  </div>
{% endif %}
