Breadcrumb The trail of pages above this one, so people can see where they are and go back up. Same markup and props in every style: switch the style in the header to see it change.
Basic Links up the trail; the current page is plain text.
breadcrumb-basic.html Copy< nav class = "vin-breadcrumb" aria-label = "Breadcrumb" >
< ol class = "vin-breadcrumb__list" >
< li class = "vin-breadcrumb__item" >< a class = "vin-breadcrumb__link" href = "#" >Home</ a ></ li >
< li class = "vin-breadcrumb__item" >< a class = "vin-breadcrumb__link" href = "#" >Components</ a ></ li >
< li class = "vin-breadcrumb__item" >< span class = "vin-breadcrumb__page" aria-current = "page" >Breadcrumb</ span ></ li >
</ ol >
</ nav > import { Breadcrumb } from "@/components/vin/breadcrumb" ;
export function BreadcrumbBasic () {
return < Breadcrumb items = {[{ label: "Home" , href: "#" }, { label: "Components" , href: "#" }, { label: "Breadcrumb" }]} />;
} The Vue version renders the same markup as the HTML tab, so it looks and works the same.
< script setup lang = "ts" >
import Breadcrumb from "@/components/vin/breadcrumb.vue" ;
</ script >
< template >
< Breadcrumb : items = " [{ label: 'Home' , href: '#' }, { label: 'Components' , href: '#' }, { label: 'Breadcrumb' }] " />
</ template > The Svelte version renders the same markup as the HTML tab, so it looks and works the same.
breadcrumb-basic.svelte Copy< script lang = "ts" >
import Breadcrumb from "$lib/components/vin/breadcrumb.svelte" ;
</ script >
< Breadcrumb items ={[{ label: "Home" , href: "#" }, { label: "Components" , href: "#" }, { label: "Breadcrumb" }]} /> Chevron A chevron between items instead of a slash.
breadcrumb-chevron.html Copy< nav class = "vin-breadcrumb vin-breadcrumb--chevron" aria-label = "Breadcrumb" >
< ol class = "vin-breadcrumb__list" >
< li class = "vin-breadcrumb__item" >< a class = "vin-breadcrumb__link" href = "#" >Docs</ a ></ li >
< li class = "vin-breadcrumb__item" >< a class = "vin-breadcrumb__link" href = "#" >Getting started</ a ></ li >
< li class = "vin-breadcrumb__item" >< span class = "vin-breadcrumb__page" aria-current = "page" >Installation</ span ></ li >
</ ol >
</ nav > breadcrumb-chevron.tsx Copyimport { Breadcrumb } from "@/components/vin/breadcrumb" ;
export function BreadcrumbChevron () {
return < Breadcrumb separator = "chevron" items = {[{ label: "Docs" , href: "#" }, { label: "Getting started" , href: "#" }, { label: "Installation" }]} />;
} The Vue version renders the same markup as the HTML tab, so it looks and works the same.
breadcrumb-chevron.vue Copy< script setup lang = "ts" >
import Breadcrumb from "@/components/vin/breadcrumb.vue" ;
</ script >
< template >
< Breadcrumb separator = "chevron" : items = " [{ label: 'Docs' , href: '#' }, { label: 'Getting started' , href: '#' }, { label: 'Installation' }] " />
</ template > The Svelte version renders the same markup as the HTML tab, so it looks and works the same.
breadcrumb-chevron.svelte Copy< script lang = "ts" >
import Breadcrumb from "$lib/components/vin/breadcrumb.svelte" ;
</ script >
< Breadcrumb separator = "chevron" items ={[{ label: "Docs" , href: "#" }, { label: "Getting started" , href: "#" }, { label: "Installation" }]} /> Long names Names longer than 22 characters are cut with an ellipsis; the full name is in the title attribute.
< nav class = "vin-breadcrumb" aria-label = "Breadcrumb" >
< ol class = "vin-breadcrumb__list" >
< li class = "vin-breadcrumb__item" >< a class = "vin-breadcrumb__link" href = "#" >Projects</ a ></ li >
< li class = "vin-breadcrumb__item" >< a class = "vin-breadcrumb__link" href = "#" title = "Marketing website redesign 2026" >Marketing website redesign 2026</ a ></ li >
< li class = "vin-breadcrumb__item" >< span class = "vin-breadcrumb__page" aria-current = "page" >Settings</ span ></ li >
</ ol >
</ nav > import { Breadcrumb } from "@/components/vin/breadcrumb" ;
export function BreadcrumbLong () {
return < Breadcrumb items = {[{ label: "Projects" , href: "#" }, { label: "Marketing website redesign 2026" , href: "#" }, { label: "Settings" }]} />;
} The Vue version renders the same markup as the HTML tab, so it looks and works the same.
< script setup lang = "ts" >
import Breadcrumb from "@/components/vin/breadcrumb.vue" ;
</ script >
< template >
< Breadcrumb : items = " [{ label: 'Projects' , href: '#' }, { label: 'Marketing website redesign 2026' , href: '#' }, { label: 'Settings' }] " />
</ template > The Svelte version renders the same markup as the HTML tab, so it looks and works the same.
breadcrumb-long.svelte Copy< script lang = "ts" >
import Breadcrumb from "$lib/components/vin/breadcrumb.svelte" ;
</ script >
< Breadcrumb items ={[{ label: "Projects" , href: "#" }, { label: "Marketing website redesign 2026" , href: "#" }, { label: "Settings" }]} /> Installation React, Vue and Svelte: add the component to your project with the CLI. It reads your framework from vin.json and also copies any component this one needs. Then import it:
npx @vinish/ui add breadcrumb import { Breadcrumb } from "@/components/vin/breadcrumb" ; import Breadcrumb from "@/components/vin/breadcrumb.vue" ; import Breadcrumb from "$lib/components/vin/breadcrumb.svelte" ; The import paths assume the default folders: @/components/vin (React and Vue, with the usual @ → src alias) and $lib/components/vin (SvelteKit). Use your own if you chose another folder in init. How the Vue and Svelte versions pass values and content is in Frameworks .
Plain HTML: the classes come with the style's stylesheet. It needs no JavaScript.
API From spec/breadcrumb.json, which every framework version is tested against.
Prop Values Default In HTML itemsThe trail, top first. The last item is this page (no href).
{ label, href? }[]— li > a.vin-breadcrumb__link, last li > span.vin-breadcrumb__page[aria-current=page]separatorslashchevronslashvin-breadcrumb--chevron
Parts React, Vue, Svelte HTML classes <Breadcrumb>.vin-breadcrumb.vin-breadcrumb--chevron.vin-breadcrumb__list.vin-breadcrumb__item.vin-breadcrumb__link.vin-breadcrumb__page
Accessibility A <nav> named "Breadcrumb", with an ordered list inside, so screen readers announce a breadcrumb landmark and the number of levels. The current page has aria-current="page". The separators are drawn by CSS with empty alternative text, so they aren't read out.