Skip to content

Custom Breadcrumbs

Page header breadcrumb with heading, actions and link list.

Installation

bun add @xerobi/ui
import { BackLink, BreadcrumbsLink, CustomBreadcrumbs, MoreLinks } from "@xerobi/ui/custom-breadcrumbs"

This component is client-side. In Astro, hydrate it with a client directive.

API reference

PropTypeDescription
labelstring
renderReactElement<Record<string, unknown>, string | JSXElementConstructor<any>>
PropTypeDescription
namestring
hrefstring
disabledboolean
iconstring | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>
renderReactElement<Record<string, unknown>, string | JSXElementConstructor<any>>Router link element used when `href` is set.

CustomBreadcrumbs

PropTypeDescription
headingstring
activeLastbooleanMake the last crumb a link too (it is plain text by default).
backHrefstring
actionstring | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>
linksBreadcrumbsLinkProps[]
moreLinksstring[]
linkRenderReactElement<Record<string, unknown>, string | JSXElementConstructor<any>>Router link element applied to every crumb with an `href`.
slots{ breadcrumbs?: ReactNode; }
slotProps{ heading?: DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> | undefined; content?: DetailedHTMLProps<HTMLAttributes<HTMLDivElement>...
PropTypeDescription
linksstring[]

Search documentation

Search pages, components and blocks.