Thumbnav

Create a flexible thumbnail navigation.

Usage

To create a navigation with thumbnails, use the following classes. This component is built with Flexbox. So to align a thumbnav, you can use Flex component.

Class Description
.uk-thumbnav Add this class to a <ul> element to define the Thumbnav component. Nest your thumbnail images inside <a> elements within the list.
.uk-active Add this class to a list item to apply an active state.
<ul class="uk-thumbnav">
    <li class="uk-active"><a href=""><img src="" alt=""></a></li>
    <li><a href=""><img src="" alt=""></a></li>
</ul>

Note For a better layout, if items should wrap into the next row, add the uk-margin attribute from the Margin component.

<ul class="uk-thumbnav" uk-margin>
    <li class="uk-active"><a href="#"><img src="images/photo.jpg" width="100" alt=""></a></li>
    <li><a href="#"><img src="images/dark.jpg" width="100" alt=""></a></li>
    <li><a href="#"><img src="images/light.jpg" width="100" alt=""></a></li>
</ul>

Vertical alignment

The thumbnav can also be displayed vertically. Just add the .uk-thumbnav-vertical modifier.

<ul class="uk-thumbnav uk-thumbnav-vertical">...</ul>
<ul class="uk-thumbnav uk-thumbnav-vertical" uk-margin>
    <li class="uk-active"><a href="#"><img src="images/photo.jpg" width="100" alt=""></a></li>
    <li><a href="#"><img src="images/dark.jpg" width="100" alt=""></a></li>
    <li><a href="#"><img src="images/light.jpg" width="100" alt=""></a></li>
</ul>

Position as overlay

To position the thumbnav on top of an element or the Slideshow component for example, add one of the .uk-position-* classes from the Position component to a div element wrapping the thumbnav. To create a position context on the container, add the .uk-position-relative class.

<div class="uk-position-relative">

    <!-- The element which is wrapped goes here -->

    <div class="uk-position-bottom-center uk-position-small">
        <ul class="uk-thumbnav">...</ul>
    </div>

</div>
<div class="uk-position-relative" uk-slideshow="animation: fade">

    <ul class="uk-slideshow-items">
        <li>
            <img src="images/photo.jpg" alt="" uk-cover>
        </li>
        <li>
            <img src="images/dark.jpg" alt="" uk-cover>
        </li>
        <li>
            <img src="images/light.jpg" alt="" uk-cover>
        </li>
    </ul>

    <div class="uk-position-bottom-center uk-position-small">
        <ul class="uk-thumbnav">
            <li uk-slideshow-item="0"><a href="#"><img src="images/photo.jpg" width="100" alt=""></a></li>
            <li uk-slideshow-item="1"><a href="#"><img src="images/dark.jpg" width="100" alt=""></a></li>
            <li uk-slideshow-item="2"><a href="#"><img src="images/light.jpg" width="100" alt=""></a></li>
        </ul>
    </div>

</div>