{% set attributes = id ? attributes.setAttribute('id', 'shoelace-tree-item-' ~ id) : attributes %}
{% set attributes = expanded ? attributes.setAttribute('expanded', true) : attributes %}

<sl-tree-item {{ attributes }}>
  {% if icon %}
    <sl-icon name="{{ icon }}"></sl-icon>
  {% endif %}
  {{ title }}
  <sl-icon class="shoelace-tree--action" name="three-dots-vertical"></sl-icon>
  {{ children }}
</sl-tree-item>
