An alphabetical index helps people jump through long directories. Each active letter should point to a section that exists.
Worked example
<div class="stack">
<nav>
<div class="row"><a href="#a">A</a><a href="#b">B</a><a href="#c">C</a></div>
</nav>
<section id="a" class="box stack">
<h2>A</h2>
<p>Ada · Amir</p>
</section>
<section id="b" class="box stack">
<h2>B</h2>
<p>Bea · Ben</p>
</section>
<section id="c" class="box stack">
<h2>C</h2>
<p>Cam · Chris</p>
</section>
</div>Implementation notes
The directory should handle names outside A–Z. Decide whether accented letters join a base group or receive their own locale-specific grouping.
Try it yourself
Remove every item under one letter and inspect the index.
Open the UI Components example →Editorial date June 16, 2026 · Published December 6, 2026