unslopkit

Components / Navigation

Contents with leaders

A book style contents list: chapter number, title, a dotted leader and the page. The chapter you are in is set in italic with a small marker. For a long read, a report or a cookbook.

Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-navigation-contents-leaders">
<nav class="idx" aria-label="Book contents">
  <p class="kick"><span>Contents</span><span>Salt, Smoke, Brine</span></p>
  <ol>
    <li><a href="#"><span class="no">01</span><span class="t">The pantry</span><span class="dots"></span><span class="pg">8</span><span class="s">What to keep in, and why</span></a></li>
    <li><a href="#"><span class="no">02</span><span class="t">Quick pickles</span><span class="dots"></span><span class="pg">24</span><span class="s">Ready by supper</span></a></li>
    <li><a href="#" aria-current="page"><span class="no">03</span><span class="t">Ferments</span><span class="dots"></span><span class="pg">52</span><span class="s">Kraut, kimchi and a sour starter</span><span class="mark">Reading now</span></a></li>
    <li><a href="#"><span class="no">04</span><span class="t">Smoke and cure</span><span class="dots"></span><span class="pg">96</span><span class="s">Fish first, then bacon</span></a></li>
    <li><a href="#"><span class="no">05</span><span class="t">Jams and curds</span><span class="dots"></span><span class="pg">134</span><span class="s">Setting points without a thermometer</span></a></li>
  </ol>
</nav>
</div>

More navigation

All 26
  • Tram line map

  • Lift button panel

  • Service header

  • Underline tabs with counts

  • App shell header and breadcrumb

  • Extended header with search