We're sorry, but this feature is not yet available. We are working hard to make it happen as soon as possible. Thank you for your patience and understanding. Please check back later for updates.
The element you clicked is for demonstration purposes only and does not lead to actual content. Everything you see here is a simulation intended to demonstrate how the UI elements might look and behave in a real application.
Create a dot navigation to operate slideshows or to scroll to different page sections.
Note If you are not using Tailwind
CSS, you can skip this step. On your tailwind.config.js
file, add the Dotnav component
within the ui()
plugin.
import ui from "franken-ui";
ui({
components: {
dotnav: {
hooks: {}
}
}
}),
To create a navigation with dots, use the following classes. This component is built with Flexbox. So to align a dotnav, you can use Flex component or utility classes from Tailwind CSS.
Class | Description |
---|---|
.uk-dotnav | Add this class to a <ul> element to define the Dotnav component. Use <a> elements as nav items within the list. |
.uk-active | Add this class to a list item to apply an active state. |
<ul class="uk-dotnav">
<li class="uk-active"><a href=""></a></li>
<li><a href=""></a></li>
</ul>
The dotnav can also be displayed vertically. Just add the .uk-dotnav-vertical
modifier.
<ul class="uk-dotnav uk-dotnav-vertical">
...
</ul>
Learn more about using hooks.
Hook Name | Affected Classes |
---|---|
hook-dotnav | .uk-dotnav |
hook-item | .uk-dotnav > * > * |
hook-item-hover | .uk-dotnav > * > :hover |
hook-item-onclick | .uk-dotnav > * > :active |
hook-item-active | .uk-dotnav > .uk-active > * |
hook-misc | * |