Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 581 Bytes

TotalHits.md

File metadata and controls

31 lines (24 loc) · 581 Bytes

TotalHits

The TotalHits component displays the total number of matching hits.

Block available

name Description
content -

Default layout

{% block content %}
    <span {{ attributes.defaults({
        'class': 'ux-search-total-hits'
    }) }} >
        {{ 'results'|trans({'%count%': totalHits}, domain='mezcalito_ux_search') }}
    </span>
{% endblock %}

Default HTML output

<div class="ux-search__stats">
    <span class="ux-search-total-hits">
        10000 results
    </span>
</div>