{#
/**
 * @file
 * Default implementation for Material Icon field.
 *
 * Available variables:
 * - icon: the name of the icon being used for templating.
 * - family: the style for the icon.
 * - classes: the additional classes to add..
 *
 * @ingroup themeable
 */
#}
{% set attributes = attributes ?? create_attribute() %}
{% set classes = [
    'material-symbol',
    'material-symbols-' ~ family|default('sharp')
  ]|merge(tw_classes ? tw_classes : [])
%}
{% if icon %}
  <span {{ attributes.setAttribute('aria-hidden', true).addClass(classes)}}>{{ icon }}</span>
{% endif %}
