Skip to content

Dot Pagination

A copy-paste pagination component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

PaginationHTMLCSSany framework

Copy into your project

HTML
<nav class="nuda-pgd">
  <span class="nuda-pgd__dot"></span>
  <span class="nuda-pgd__dot nuda-pgd__dot--on"></span>
  <span class="nuda-pgd__dot"></span>
  <span class="nuda-pgd__dot"></span>
</nav>
CSS
.nuda-pgd {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}

.nuda-pgd__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: all .25s;
}

.nuda-pgd__dot--on {
  width: 24px;
  border-radius: 99px;
  background: #e4ff54;
}

How to use Dot Pagination

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More pagination components

← Browse all NudaUI components