Breadcrumb

Home Trail

A trail with a home mark and chevrons between levels: both shapes drawn with borders, no icon package.

  • breadcrumb
  • icon
  • home
  • css-shapes

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.

put this in the header: https://vibeui.ru/c/breadcrumb-003?lang=en

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

# Install and place "breadcrumb-003" (Home Trail) from VibeUI

## 1. Install first — do not skip, do not recreate
Run this exact command before writing any code:
npx shadcn@latest add https://vibeui.ru/r/breadcrumb-003.json

Registry item: https://vibeui.ru/r/breadcrumb-003.json
Installs to: components/vibeui/breadcrumb-003.tsx (the exact path follows this project's components.json aliases).
npm dependencies: none.
Registry dependencies: none.

Install it from the registry. Do not recreate it from the description,
do not substitute a similar component from another library, and do not
rewrite it to match the project's existing style.

## 2. What it is
A trail with a home mark and chevrons between levels: both shapes drawn with borders, no icon package.

Breadcrumbs with a home mark and chevrons: the shapes are borders and the icon carries a text name. Zero dependencies, one file, no client JS.

## 3. How to use it
import { Breadcrumb003 } from "@/components/vibeui/breadcrumb-003"

<Breadcrumb003 items={[{ label: "Projects", href: "/" }, { label: "Settings" }]} />

Read the installed file for the full prop list.

## 4. Where to place it
This is a small inline component. Put it exactly where the user asked,
inside the existing markup. Do not create a new page, section or
wrapper for it. If a similar control already sits in that spot,
replace it instead of adding a second one.

Placement: ___
(The user fills this line in. If it is still blank, ask where to put it
instead of guessing.)

## 5. Keep exactly as installed
- the local --vibeui-breadcrumb-003-* palette — do not swap it for your theme tokens
- the aria-label on the home link: a nameless icon is a dead end for screen readers
- border-drawn shapes instead of an icon package for two glyphs
- the chevron as a separator only — it must not look clickable
- aria-current="page" on the last level
- the visible focus ring on links

## 6. You may change
- the items array
- homeLabel — what the root is called
- the accent through the accent prop
- the glyph size through the type scale

## 7. Rules
- The home mark stands in for the word "Home": if your root is called something else, write it.
- Do not make chevrons clickable: a separator does nothing.
- There is no collapsing here: use breadcrumb-001 or breadcrumb-004.
- Do not lift the CSS variables into globals.css: the component has to stay a single file.

## 8. Verify
- it renders with no console errors;
- it looks like the preview on the VibeUI page you copied this from;
- if it does not, you changed something listed in section 5 — put it back.

For developers

npx shadcn@latest add https://vibeui.ru/r/breadcrumb-003.json
https://vibeui.ru/r/breadcrumb-003.json

Компонент самодостаточен: один файл, без зависимостей, собственная палитра в локальных переменных --vibeui-breadcrumb-003-*. Серверный: хуков нет. Домик собран из повёрнутого квадрата (крыша) и прямоугольника с обрезанной верхней гранью (стена); шеврон — два бордюра, повёрнутых на 45°. У ссылки-домика есть aria-label: иконка без имени в навигации бесполезна.

Component source

The same file your agent installs. Here in case you would rather copy it by hand.

import type { ComponentPropsWithoutRef, CSSProperties } from "react"

export type Breadcrumb003Item = {
  label: string
  href?: string
}

export type Breadcrumb003Props = Omit<
  ComponentPropsWithoutRef<"nav">,
  "children"
> & {
  items?: Breadcrumb003Item[]
  homeLabel?: string
  accent?: string
}

// Идея компонента: путь с домиком в начале и шевронами между уровнями.
// Домик — не картинка: домик и шеврон нарисованы бордюрами, поэтому путь
// весит столько же, сколько текст. У домика есть подпись для скринридера:
// иконка без имени в навигации — тупик.
const STYLES = `
:where([data-vibeui-block="breadcrumb-003"]){
--vibeui-breadcrumb-003-surface:oklch(1 0 0);
--vibeui-breadcrumb-003-surface-border:oklch(0.91 0.006 265);
--vibeui-breadcrumb-003-fg:oklch(0.28 0.016 265);
--vibeui-breadcrumb-003-muted:oklch(0.56 0.014 265);
--vibeui-breadcrumb-003-line:oklch(0.78 0.01 265);
--vibeui-breadcrumb-003-accent:oklch(0.55 0.17 265);
--vibeui-breadcrumb-003-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
/* Собственная подложка: крошки — это текст, и на тёмной странице
   он обязан читаться без правки палитры проекта. */
[data-vibeui-block="breadcrumb-003"]{
box-sizing:border-box;padding:0.5rem 0.75rem;
background:var(--vibeui-breadcrumb-003-surface);
border:1px solid var(--vibeui-breadcrumb-003-surface-border);border-radius:0.625rem;
font-family:var(--vibeui-breadcrumb-003-font);font-size:0.8125rem;line-height:1.4;
color:var(--vibeui-breadcrumb-003-muted);
}
[data-vibeui-block="breadcrumb-003"] ol{
display:flex;flex-wrap:wrap;align-items:center;gap:0.4375rem;
margin:0;padding:0;list-style:none;
}
[data-vibeui-block="breadcrumb-003"] li{display:inline-flex;align-items:center;gap:0.4375rem}
/* Шеврон — два бордюра: иконочный шрифт ради галочки не нужен. */
[data-vibeui-block="breadcrumb-003"] li + li::before{
content:"";width:0.3125rem;height:0.3125rem;
border-top:1.5px solid var(--vibeui-breadcrumb-003-line);
border-right:1.5px solid var(--vibeui-breadcrumb-003-line);
transform:rotate(45deg);
}
[data-vibeui-block="breadcrumb-003"] a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:0.3125rem;border-radius:0.25rem}
[data-vibeui-block="breadcrumb-003"] a:hover{color:var(--vibeui-breadcrumb-003-fg)}
[data-vibeui-block="breadcrumb-003"] a:focus-visible{outline:2px solid var(--vibeui-breadcrumb-003-accent);outline-offset:2px}
[data-vibeui-block="breadcrumb-003"] [aria-current="page"]{color:var(--vibeui-breadcrumb-003-fg);font-weight:600}
/* Домик: крыша повёрнутым квадратом, стена прямоугольником. */
[data-vibeui-block="breadcrumb-003"] [data-part="home"]{
position:relative;display:inline-block;width:0.875rem;height:0.8125rem;
}
[data-vibeui-block="breadcrumb-003"] [data-part="home"]::before{
content:"";position:absolute;left:50%;top:0;width:0.5625rem;height:0.5625rem;
margin-left:-0.28125rem;
border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;
transform:rotate(-45deg);
}
[data-vibeui-block="breadcrumb-003"] [data-part="home"]::after{
content:"";position:absolute;left:50%;bottom:0;width:0.625rem;height:0.4375rem;
margin-left:-0.3125rem;
border:1.5px solid currentColor;border-top:0;border-radius:0 0 0.125rem 0.125rem;
}
@media (prefers-reduced-motion:reduce){[data-vibeui-block="breadcrumb-003"] *{animation:none!important;transition:none!important}}
`

const DEFAULT_ITEMS: Breadcrumb003Item[] = [
  { label: "Проекты", href: "#" },
  { label: "Каталог", href: "#" },
  { label: "Настройки" },
]

/**
 * Путь с домиком и шевронами, нарисованными бордюрами.
 * Один файл, ноль зависимостей, собственная палитра.
 */
export function Breadcrumb003({
  items = DEFAULT_ITEMS,
  homeLabel = "На главную",
  accent,
  className,
  style,
  ...props
}: Breadcrumb003Props) {
  const palette = {
    ...(accent ? { "--vibeui-breadcrumb-003-accent": accent } : null),
    ...style,
  } as CSSProperties

  return (
    <>
      <style href="vibeui-breadcrumb-003" precedence="medium">
        {STYLES}
      </style>
      <nav
        {...props}
        data-vibeui-block="breadcrumb-003"
        aria-label="Хлебные крошки"
        className={className}
        style={palette}
      >
        <ol>
          <li>
            <a href="#" aria-label={homeLabel}>
              <span data-part="home" aria-hidden="true" />
            </a>
          </li>
          {items.map((item, index) => {
            const last = index === items.length - 1

            return (
              <li key={item.label}>
                {item.href && !last ? (
                  <a href={item.href}>{item.label}</a>
                ) : (
                  <span aria-current={last ? "page" : undefined}>
                    {item.label}
                  </span>
                )}
              </li>
            )
          })}
        </ol>
      </nav>
    </>
  )
}