You are here

micon-icon-list.html.twig in Micon 2.x

Same filename and directory in other branches
  1. 8 templates/micon-icon-list.html.twig

micon-icon-list.html.twig Default theme implementation to present a list of Micon icons/svgs.

File

templates/micon-icon-list.html.twig
View source
  1. {#
  2. /**
  3. * @file micon-icon-list.html.twig
  4. * Default theme implementation to present a list of Micon icons/svgs.
  5. *
  6. * @see template_preprocess_micon_icon_list()
  7. *
  8. * @ingroup themeable
  9. */
  10. #}
  11. {%
  12. set classes = [
  13. 'micon-icon-list',
  14. ]
  15. %}
  16. {% if content %}
  17. {{- content -}}
  18. {% endif %}
  19. <ul{{ attributes.addClass(classes) }}>
  20. {% for icon in icons %}
  21. <li>{{ icon }}</li>
  22. {% endfor %}
  23. </ul>