Minimal Pager
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-pgm">
<button class="nuda-pgm__btn">‹ Prev</button>
<span class="nuda-pgm__label">Page 2 of 10</span>
<button class="nuda-pgm__btn">Next ›</button>
</nav>CSS
.nuda-pgm {
display: inline-flex;
align-items: center;
gap: 1rem;
}
.nuda-pgm__btn {
background: transparent;
border: 1px solid rgba(255,255,255,.12);
color: #cfcfcf;
border-radius: 8px;
padding: .45rem .8rem;
font-size: .78rem;
cursor: pointer;
transition: all .15s;
}
.nuda-pgm__btn:hover {
border-color: rgba(228,255,84,.4);
color: #fafafa;
}
.nuda-pgm__label {
font-size: .75rem;
color: #777;
font-variant-numeric: tabular-nums;
}
How to use Minimal Pager
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.