Components
AppPageBreadcrumb
src/lib/components/AppPageBreadcrumb.svelte
Purpose
Renders ancestor breadcrumb segments (the current page title is shown
separately, e.g. in an h1). Each segment is either a plain link, a static
label, or a menu segment that opens a DropdownMenu of sibling destinations
(selecting one calls goto). A trailing / separator is always rendered after
the last segment. Built on the shadcn-svelte™ Breadcrumb and DropdownMenu
primitives.
Origin
Custom — Primebrick-written, using shadcn-svelte™ Breadcrumb and
DropdownMenu primitives plus @lucide/svelte ChevronDown.
Usage
Default
Code
With a menu segment (sibling switcher)
Code
Empty (no segments)
When segments is empty, nothing renders.
Code
Props
Full prop table: see API reference — apppagebreadcrumb.
Key props: segments: AppBreadcrumbSegment[] (ancestor segments only).
Next steps
Last modified on