Breadcrumb
LayoutMITPath-style hierarchy navigation with separators and overflow handling.
bun add @otfdashkit/ui
Preview
BreadcrumbLayout
Loading Storybook preview…
Code
@otfdashkit/uiimport { Breadcrumb, BreadcrumbItem, BreadcrumbPage } from '@otfdashkit/ui'
export function Example() {
return (
<div className="space-y-4">
<Breadcrumb>
<BreadcrumbItem href="/" label="Home" />
<BreadcrumbItem href="/projects" label="Projects" />
<BreadcrumbPage>My App</BreadcrumbPage>
</Breadcrumb>
<Breadcrumb>
<BreadcrumbItem href="/" label="Dashboard" />
<BreadcrumbItem href="/settings" label="Settings" />
<BreadcrumbPage>Billing</BreadcrumbPage>
</Breadcrumb>
</div>
)
}
Free with the SDK. This component ships in @otfdashkit/ui under the MIT license.
Props
Props declared in the Breadcrumb source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| childrenrequired | ReactNode | ||
| className | string |