Collapsed Breadcrumb
A copy-paste breadcrumbs component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
BreadcrumbsHTMLCSSany framework
Copy into your project
HTML
<nav class="nuda-bco">
<a class="nuda-bco__link" href="#">Home</a>
<span class="nuda-bco__sep">/</span>
<button class="nuda-bco__more">…</button>
<span class="nuda-bco__sep">/</span>
<span class="nuda-bco__cur">Invoice #42</span>
</nav>CSS
.nuda-bco {
display: inline-flex;
align-items: center;
gap: .45rem;
font-size: .8rem;
}
.nuda-bco__link {
color: #999;
cursor: pointer;
}
.nuda-bco__link:hover {
color: #e4ff54;
}
.nuda-bco__sep {
color: #555;
}
.nuda-bco__more {
width: 26px;
height: 22px;
border: none;
background: #1f1f1f;
color: #aaa;
border-radius: 6px;
cursor: pointer;
font-size: .8rem;
line-height: 1;
}
.nuda-bco__more:hover {
background: #2a2a2a;
color: #fafafa;
}
.nuda-bco__cur {
color: #fafafa;
font-weight: 600;
}
How to use Collapsed Breadcrumb
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.