Skip to content

Breadcrumb

LayoutMIT
View in Storybook

Path-style hierarchy navigation with separators and overflow handling.

bun add @otfdashkit/ui

Preview

Breadcrumb
Loading Storybook preview…

Code

import { 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.

PropTypeDefaultDescription
childrenrequiredReactNode
classNamestring