Skip to content

Breadcrumb

The Breadcrumb component provides a navigation trail showing the user’s current location within the application hierarchy.

// Import components
import {
Breadcrumb,
Link,
} from '@fintech-sandpit/ui/react';
// Import styles (optional)
import '@fintech-sandpit/ui/style/components/breadcrumb.css';
import '@fintech-sandpit/ui/style/components/link.css';
return (
<Breadcrumb.Root>
<Breadcrumb.List>
<Breadcrumb.Item>
<Breadcrumb.Link asChild>
<Link href="/">
NayaOne Design System
</Link>
</Breadcrumb.Link>
</Breadcrumb.Item>
<Breadcrumb.Separator />
<Breadcrumb.Item>
<Breadcrumb.Link href="#">
Components
</Breadcrumb.Link>
</Breadcrumb.Item>
<Breadcrumb.Separator />
<Breadcrumb.Item>
<Breadcrumb.Link href="#">
Display
</Breadcrumb.Link>
</Breadcrumb.Item>
<Breadcrumb.Separator />
<Breadcrumb.Item isActive>
<Breadcrumb.Link asChild>
<span>
Breadcrumb component
</span>
</Breadcrumb.Link>
</Breadcrumb.Item>
</Breadcrumb.List>
</Breadcrumb.Root>
);
NameTypeDefaultDescription
sizeBreadcrumbSizemdSize
NameTypeDefaultDescription
asChildbooleanfalseUse the provided child element as the default rendered element, combining their props and behavior
NameTypeDefaultDescription
isActivebooleanfalseWhether this is the current page
asChildbooleanfalseUse the provided child element as the default rendered element, combining their props and behavior
NameTypeDefaultDescription
asChildbooleanfalseUse the provided child element as the default rendered element, combining their props and behavior
hrefstring—Link URL
NameTypeDefaultDescription
asChildbooleanfalseUse the provided child element as the default rendered element, combining their props and behavior
type BreadcrumbSize = 'sm' | 'md' | 'lg'