Breadcrumb
Breadcrumb shows where a page sits in your app. The parent links in this
preview lead to real pages; the final label is the page you are already on.
React Native: no class in this look is Web-only.
import { Breadcrumb } from '@hozo/ui'export function BreadcrumbDemo({ basePath = '' }: { basePath?: string }) { return ( <Breadcrumb accessibilityLabel="Example documentation hierarchy" ancestors={[ { label: 'Docs', href: `${basePath}/docs/` }, { label: 'Components', href: `${basePath}/docs/components/` }, ]} current="Breadcrumb" /> )}Pass ancestors as { label, href } entries, outermost first, and use
current for the page label. The trail wraps on narrow screens and keeps all
of its links. The separator is decorative. Set accessibilityLabel when there
are several navigation regions to distinguish.
On Web the preview is plain HTML and its links work without JavaScript. In an
app, the links use the same navigation adapter
as Link. For a trail without the UI theme, import Breadcrumb from
@hozo/semantics or @hozo/core.