stack/src/components/items/variant-parameter-item/variant-parameter-item.twig line 1

Open in your IDE?
  1. {%- set class_name = [
  2.   "i-variant-parameter",
  3.   "d-flex",
  4.   "flex-column",
  5.   "u-fz-sm"
  6. ]|join(' ')|trim -%}
  7. {%- set attrs = [
  8.   'class="' ~ class_name ~ '"',
  9. ] -%}
  10. {%- set attrs = attrs|join(' ')|trim -%}
  11. <div {{ attrs|raw }}>
  12.   {% if props.title %}
  13.     <div class="i-variant-parameter__title u-fw-400 u-color-primary-500">
  14.       {{ props.title }}
  15.     </div>
  16.   {% endif %}
  17.   {% if props.value %}
  18.     <div class="i-variant-parameter__value u-fw-600 u-color-primary">
  19.       {{ props.value }}
  20.     </div>
  21.   {% endif %}
  22. </div>