Breadcrumb

A nav trail with hand-drawn slash or chevron separators between crumbs.

<Breadcrumb separator="slash" roughness={1.5}>
  <BreadcrumbItem href="/">Home</BreadcrumbItem>
  <BreadcrumbItem current>Breadcrumb</BreadcrumbItem>
</Breadcrumb>

CLI install

npx doodleui-react add breadcrumb

Usage

import { Breadcrumb, BreadcrumbItem } from "doodleui-react";

<Breadcrumb>
  <BreadcrumbItem href="/">Home</BreadcrumbItem>
  <BreadcrumbItem href="/docs">Docs</BreadcrumbItem>
  <BreadcrumbItem current>Breadcrumb</BreadcrumbItem>
</Breadcrumb>

The current crumb sets aria-current="page". Separators are decorative and hidden from assistive tech.

Props

PropTypeDefaultNotes
separator"slash" | "chevron""slash"Hand-drawn mark between crumbs.
roughnessnumber1.5How wobbly the stroke is. 0 is almost geometric. 3+ is messy.
seednumberprovider / randomLocks the sketch. Omit to follow SketchSeedProvider (Shuffle) or a mount-time random seed.
sketchColorstring#1f1d1aStroke color. Also tints primary/accent fills where relevant.
classNamestringundefinedPassed through to the root element.
styleCSSPropertiesundefinedPassed through to the root element.