A position counter tells the reader which item is visible. Update both current position and total when filtering changes the underlying collection.
Worked example
<div class="box stack">
<p class="kicker">Print collection</p>
<h2>Study in green</h2>
<p>Piece 4 of 12</p>
<progress value="4" max="12">4 / 12</progress>
</div>Implementation notes
A counter can become stale after deleting the current item. Clamp the active position after the list changes and define an empty-state label.
Try it yourself
Filter down to one item from the middle of a list.
Open the UI Components example →Editorial date July 8, 2026 · Published December 6, 2026