Components
Breadcrumbs show the user's location in a hierarchy and let them navigate back up, from Meta's Astryx design system. Compose BreadcrumbItem children with links, icons, or onClick handlers; supports custom separators and a subtler supporting variant.
Loading preview...
'use client';
import Breadcrumbs, {BreadcrumbItem} from '@/components/ui/astryx-breadcrumbs';
import {Theme} from '@astryxdesign/core/theme';
import {neutralTheme} from '@astryxdesign/theme-neutral/built';
import {Icon} from '@astryxdesign/core/Icon';
import {HomeIcon} from '@heroicons/react/24/outline';
export default function BreadcrumbsDeepHierarchy() {
return (
<Theme theme={neutralTheme}>
<div
style={{
minHeight: '100dvh',
display: 'grid',
placeItems: 'center',
padding: 24,
}}>
<Breadcrumbs>
<BreadcrumbItem
href="/"
startIcon={<Icon icon={HomeIcon} size="sm" />}>
Home
</BreadcrumbItem>
<BreadcrumbItem href="/products">Products</BreadcrumbItem>
<BreadcrumbItem href="/products/electronics">
Electronics
</BreadcrumbItem>
<BreadcrumbItem href="/products/electronics/phones">
Phones
</BreadcrumbItem>
<BreadcrumbItem isCurrent>iPhone 15 Pro</BreadcrumbItem>
</Breadcrumbs>
</div>
</Theme>
);
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...