Skip to content

Source code

Source code

src/showcase/pages/components/metric.html

This file is included in this documentation build. It is displayed as code and is not executed.

Download source

<!--
Demonstrate the metrics component on its own lazy route.

@author Laurent Declercq l.declercq@agon-innovation.ch
@version 20260921
-->
<section x-data="componentCatalog" class="component-library">
  <include
    src="partials/components/page-header.html"
    locals='{"title":"componentMetric"}'
  ></include>
  <div class="catalog-grid">
    <article class="card full">
      <header class="card-header"><h2 x-text="$t('galleryMetrics')"></h2></header>
      <div class="card-body">
        <div class="catalog-grid">
          <template x-for="widget in metrics" :key="widget.id">
            <div><include src="{{ uiRoot }}/metric.html"></include></div>
          </template>
        </div>
      </div>
    </article>
  </div>
</section>