stack/src/components/items/document-item/document-item.twig line 1

Open in your IDE?
  1. {%- set class_name = [
  2.   "i-document",
  3.   "d-flex gap-3 align-items-center py-1 px-2",
  4. ]|join(' ')|trim -%}
  5. {%- set attrs = [
  6.   'class="' ~ class_name ~ '"',
  7. ] -%}
  8. {%- set attrs = attrs|join(' ')|trim -%}
  9. <div {{ attrs|raw }}>
  10.   {% include "@Components/icon/icon.twig" with {props: {
  11.     src: "@Images/svg/file.svg",
  12.     size: "xxl",
  13.   }} %}
  14.   <div class="i-document__body d-flex flex-column flex-grow-1">
  15.     <span class="i-document__title u-fz-md u-fw-500">
  16.       {{ props.title }}
  17.     </span>
  18.     {% if props.metadata %}
  19.       <span class="i-document__metadata u-fz-sm u-fw-400 u-color-primary-500">
  20.         {{ props.metadata }}
  21.       </span>
  22.     {% endif %}
  23.   </div>
  24.   <div class="i-document__button flex-shrink-0">
  25.     {% include "@Components/button/button.twig" with {props: {
  26.       icon_only: true,
  27.       variant: "primary",
  28.       icon: {
  29.         src: "@Images/svg/chevron-down.svg",
  30.         size: "lg"
  31.       },
  32.       size: "sm",
  33.       url: props.url,
  34.       blank: true,
  35.     }} %}
  36.   </div>
  37. </div>